#ifndef SPECTRE_GRAPHICS_VERTEX2D_H #define SPECTRE_GRAPHICS_VERTEX2D_H #include #include namespace sp { // Based on https://www.opengl.org/sdk/docs/tutorials/ClockworkCoders/attributes.php enum VertexAttrib { VertexAttribPosition = 0, VertexAttribColor0 = 3, VertexAttribColor1 = 4, VertexAttribTexCoord0 = 8, }; // Simple POD structure for vertex attributes. struct Vertex2D { Vector2f position; Vector4f color; Vector2f uv; Vertex2D(); Vertex2D(Vector2f pos); Vertex2D(Vector2f pos, Vector2f uv); Vertex2D(Vector2f pos, Vector4f color, Vector2f uv = 0.0f); }; } // namespace sp #endif /* SPECTRE_GRAPHICS_VERTEX2D_H */