#ifndef BLANK_GRAPHICS_ENTITYMESH_HPP_
#define BLANK_GRAPHICS_ENTITYMESH_HPP_
+#include "glm.hpp"
#include "VertexArray.hpp"
#include <vector>
#include <GL/glew.h>
-#include <glm/glm.hpp>
namespace blank {
public:
using Position = glm::vec3;
using TexCoord = glm::vec3;
- using ColorMod = glm::vec3;
+ using ColorMod = TVEC3<unsigned char, glm::precision(0)>;
using Normal = glm::vec3;
using Index = unsigned int;
public:
void Update(const Buffer &) noexcept;
- void Draw() const noexcept;
+ bool Empty() const noexcept {
+ return vao.Empty();
+ }
+
+ void Draw() const noexcept {
+ vao.DrawTriangleElements();
+ }
private:
VAO vao;