1 #ifndef BLANK_GRAPHICS_PRIMITIVEMESH_HPP_
2 #define BLANK_GRAPHICS_PRIMITIVEMESH_HPP_
4 #include "VertexArray.hpp"
16 using Position = glm::vec3;
17 using Color = glm::vec4;
18 using Index = unsigned short;
20 using Positions = std::vector<Position>;
21 using Colors = std::vector<Color>;
22 using Indices = std::vector<Index>;
37 void Clear() noexcept {
43 void Reserve(size_t p, size_t i) {
51 const glm::vec4 &color = glm::vec4(0.0f),
52 const glm::vec2 &pivot = glm::vec2(0.0f)
57 using VAO = VertexArray<ATTRIB_COUNT>;
60 void Update(const Buffer &) noexcept;
62 void DrawLines() noexcept;
63 void DrawTriangles() noexcept;