+
+
+
+
+
+
+
+
+
+
+
12 #include <glad/glad.h>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
34 Color(GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_)
+
35 :
r(r_),
g(g_),
b(b_),
a(a_)
+
+
+
+
+
+
+
+
+
+
+
46 UV(
float u_,
float v_) :
u(u_),
v(v_) {}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
67 void setColor(GLubyte r, GLubyte g, GLubyte b, GLubyte a)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Position position
Definition: vertex.h:50
+
UV(float u_, float v_)
Definition: vertex.h:46
+
float v
Definition: vertex.h:42
+
void setColor(GLubyte r, GLubyte g, GLubyte b, GLubyte a)
Definition: vertex.h:67
+
float x
Definition: vertex.h:18
+
GLubyte g
Definition: vertex.h:28
+
float y
Definition: vertex.h:19
+
+
Color color
Definition: vertex.h:51
+
void setUv(float u, float v)
Definition: vertex.h:75
+
Color(GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_)
Definition: vertex.h:34
+
Position(float x_, float y_)
Definition: vertex.h:23
+
GLubyte r
Definition: vertex.h:27
+
+
+
void setPosition(float x, float y)
Definition: vertex.h:61
+
GLubyte b
Definition: vertex.h:29
+
+
UV uv
Definition: vertex.h:52
+
Vertex(const Position &position_, const Color &color_, const UV &uv_)
Definition: vertex.h:56
+
float u
Definition: vertex.h:41
+
+
GLubyte a
Definition: vertex.h:30
+
+