jubilant-funicular
Vertex.cpp
1 #include "nta/Vertex.h"
2 
4 namespace nta {
5  const VertexAttrib Vertex2D::attribs[NUM_VERTEX_ATTRIBS] = {
6  {0, 2, GL_FLOAT, GL_FALSE, sizeof(Vertex2D), (void*)offsetof(Vertex2D, pos)},
7  {1, 4, GL_FLOAT, GL_TRUE, sizeof(Vertex2D), (void*)offsetof(Vertex2D, color)},
8  {2, 2, GL_FLOAT, GL_FALSE, sizeof(Vertex2D), (void*)offsetof(Vertex2D, uv)},
9  {3, 1, GL_FLOAT, GL_FALSE, sizeof(Vertex2D), (void*)offsetof(Vertex2D, hasTexture)}
10  };
11 }
nta
Definition: Animation2D.h:6