diff options
Diffstat (limited to 'include/yage/vertex.hpp')
-rw-r--r-- | include/yage/vertex.hpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/include/yage/vertex.hpp b/include/yage/vertex.hpp deleted file mode 100644 index d9ab1138..00000000 --- a/include/yage/vertex.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef VERTEX_HPP -#define VERTEX_HPP - -#include <GL/glew.h> - -struct Position -{ - float x; - float y; -}; - -struct Color -{ - GLubyte r; - GLubyte g; - GLubyte b; - GLubyte a; -}; - -struct UV -{ - float u; - float v; -}; - -struct Vertex -{ - Position position; - Color color; - UV uv; - - void setPosition(float x, float y) - { - position.x = x; - position.y = y; - } - - void setColor(GLubyte r, GLubyte g, GLubyte b, GLubyte a) - { - color.r = r; - color.g = g; - color.b = b; - color.a = a; - } - - void setUv(float u, float v) - { - uv.u = u; - uv.v = v; - } -}; - -#endif |