-
-
-
-
12 #include <glad/glad.h>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
34 Colour(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 setColour(GLubyte r, GLubyte g, GLubyte b, GLubyte a)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Colour()
Definition: vertex.h:32
-
GLubyte a
Definition: vertex.h:30
-
Position position
Definition: vertex.h:50
-
UV(float u_, float v_)
Definition: vertex.h:46
-
float v
Definition: vertex.h:42
-
void setColour(GLubyte r, GLubyte g, GLubyte b, GLubyte a)
Definition: vertex.h:67
-
GLubyte b
Definition: vertex.h:29
-
float x
Definition: vertex.h:18
-
float y
Definition: vertex.h:19
-
-
void setUv(float u, float v)
Definition: vertex.h:75
-
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
-
-
Colour(GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_)
Definition: vertex.h:34
-
-
Vertex(const Position &position_, const Colour &colour_, const UV &uv_)
Definition: vertex.h:56
-
GLubyte g
Definition: vertex.h:28
-
UV uv
Definition: vertex.h:52
-
Colour colour
Definition: vertex.h:51
-
float u
Definition: vertex.h:41
-