43 add_quad(x1, y1, x1, y2, x2, y1, x2, y2,
color,
color,
color,
color);
56 add_quad(x1, y1, x2, y2, x3, y3, x4, y4,
color,
color,
color,
color);
67 const uchar color1[4],
68 const uchar color2[4],
69 const uchar color3[4],
70 const uchar color4[4]);
80 float x1,
float y1,
float x2,
float y2,
const uchar color1[4],
const uchar color2[4]);
83 static constexpr int MAX_QUADS = 1024;
84 static constexpr int MAX_LINES = 4096;
88 gpu::Batch *batch_quads =
nullptr;
93 gpu::Batch *batch_lines =
nullptr;
void add_quad(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, const uchar color[4])
void add_quad(float x1, float y1, float x2, float y2, const uchar color[4])
void add_line(float x1, float y1, float x2, float y2, const uchar color[4])
void add_wire_quad(float x1, float y1, float x2, float y2, const uchar color[4])