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>;
39 void Reserve(size_t p, size_t i) {
52 Model(const Model &) = delete;
53 Model &operator =(const Model &) = delete;
56 Model &operator =(Model &&);
58 void Update(const Buffer &);
72 GLuint handle[ATTRIB_COUNT];
81 using Position = glm::vec3;
82 using Color = glm::vec3;
83 using Index = unsigned short;
85 using Positions = std::vector<Position>;
86 using Colors = std::vector<Color>;
87 using Indices = std::vector<Index>;
98 OutlineModel(const OutlineModel &) = delete;
99 OutlineModel &operator =(const OutlineModel &) = delete;
101 void Invalidate() { dirty = true; }
104 void Reserve(int vtx_count, int idx_count);
120 GLuint handle[ATTRIB_COUNT];