1 #ifndef BLANK_MODEL_SPRITEMODEL_HPP_
2 #define BLANK_MODEL_SPRITEMODEL_HPP_
14 using Position = glm::vec3;
15 using TexCoord = glm::vec2;
16 using Index = unsigned short;
18 using Positions = std::vector<Position>;
19 using TexCoords = std::vector<TexCoord>;
20 using Indices = std::vector<Index>;
28 SpriteModel() noexcept;
29 ~SpriteModel() noexcept;
31 SpriteModel(const SpriteModel &) = delete;
32 SpriteModel &operator =(const SpriteModel &) = delete;
34 void Invalidate() noexcept { dirty = true; }
36 void Clear() noexcept;
37 void Reserve(int vtx_count, int idx_count);
41 const glm::vec2 &pivot = glm::vec2(0.0f),
42 const glm::vec2 &tex_begin = glm::vec2(0.0f),
43 const glm::vec2 &tex_end = glm::vec2(1.0f, 1.0f)
49 void Update() noexcept;
60 GLuint handle[ATTRIB_COUNT];