1 #ifndef BLANK_MODEL_HPP_
2 #define BLANK_MODEL_HPP_
14 using Position = glm::vec3;
15 using Color = glm::vec3;
16 using Normal = glm::vec3;
17 using Index = unsigned int;
19 using Positions = std::vector<Position>;
20 using Colors = std::vector<Color>;
21 using Normals = std::vector<Normal>;
22 using Indices = std::vector<Index>;
34 Model(const Model &) = delete;
35 Model &operator =(const Model &) = delete;
38 Model &operator =(Model &&);
40 void Invalidate() { dirty = true; }
43 void Reserve(int vtx_count, int idx_count);
61 GLuint handle[ATTRIB_COUNT];
70 using Position = glm::vec3;
71 using Color = glm::vec3;
72 using Index = unsigned short;
74 using Positions = std::vector<Position>;
75 using Colors = std::vector<Color>;
76 using Indices = std::vector<Index>;
87 OutlineModel(const OutlineModel &) = delete;
88 OutlineModel &operator =(const OutlineModel &) = delete;
90 void Invalidate() { dirty = true; }
93 void Reserve(int vtx_count, int idx_count);
109 GLuint handle[ATTRIB_COUNT];