1 #ifndef BLANK_MODEL_ENTITYMODEL_HPP_
2 #define BLANK_MODEL_ENTITYMODEL_HPP_
4 #include "../graphics/VertexArray.hpp"
16 using Position = glm::vec3;
17 using TexCoord = glm::vec3;
18 using Color = glm::vec3;
19 using Normal = glm::vec3;
20 using Index = unsigned int;
22 using Positions = std::vector<Position>;
23 using TexCoords = std::vector<TexCoord>;
24 using Colors = std::vector<Color>;
25 using Normals = std::vector<Normal>;
26 using Indices = std::vector<Index>;
45 void Clear() noexcept {
53 void Reserve(size_t p, size_t i) {
55 tex_coords.reserve(p);
63 using VAO = VertexArray<ATTRIB_COUNT>;
66 void Update(const Buffer &) noexcept;
68 void Draw() const noexcept;