1 #ifndef BLANK_GRAPHICS_ENTITYMESH_HPP_
2 #define BLANK_GRAPHICS_ENTITYMESH_HPP_
4 #include "VertexArray.hpp"
16 using Position = glm::vec3;
17 using TexCoord = glm::vec3;
18 using ColorMod = 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 ColorMods = std::vector<ColorMod>;
25 using Normals = std::vector<Normal>;
26 using Indices = std::vector<Index>;
47 void Clear() noexcept {
56 void Reserve(size_t p, size_t i) {
58 tex_coords.reserve(p);
67 using VAO = VertexArray<ATTRIB_COUNT>;
70 void Update(const Buffer &) noexcept;
72 void Draw() const noexcept;