22 Position(
float x_,
float y_) : x(x_), y(y_) {}
33 Color(GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_)
34 : r(r_), g(g_), b(b_), a(a_) {}
43 UV(
float u_,
float v_) : u(u_), v(v_) {}
53 Vertex(
const Position& position_,
const Color& color_,
const UV& uv_)
54 : position(position_), color(color_), uv(uv_) {}
56 void setPosition(
float x,
float y) {
61 void setColor(GLubyte r, GLubyte g, GLubyte b, GLubyte a) {
68 void setUv(
float u,
float v) {
Definition: camera2d.hpp:17