1 #ifndef BLANK_MODEL_SPRITEMODEL_HPP_
2 #define BLANK_MODEL_SPRITEMODEL_HPP_
4 #include "../graphics/VertexArray.hpp"
16 using Position = glm::vec3;
17 using TexCoord = glm::vec2;
18 using Index = unsigned short;
20 using Positions = std::vector<Position>;
21 using TexCoords = std::vector<TexCoord>;
22 using Indices = std::vector<Index>;
37 void Clear() noexcept {
43 void Reserve(size_t p, size_t i) {
51 const glm::vec2 &pivot = glm::vec2(0.0f),
52 const glm::vec2 &tex_begin = glm::vec2(0.0f),
53 const glm::vec2 &tex_end = glm::vec2(1.0f, 1.0f)
58 using VAO = VertexArray<ATTRIB_COUNT>;
61 void Update(const Buffer &) noexcept;