41 add_quad(x1, y1, x1, y2, x2, y1, x2, y2,
color,
color,
color,
color);
54 add_quad(x1, y1, x2, y2, x3, y3, x4, y4,
color,
color,
color,
color);
65 const uchar color1[4],
66 const uchar color2[4],
67 const uchar color3[4],
68 const uchar color4[4]);
78 float x1,
float y1,
float x2,
float y2,
const uchar color1[4],
const uchar color2[4]);
81 static constexpr int MAX_QUADS = 1024;
82 static constexpr int MAX_LINES = 4096;
86 blender::gpu::Batch *batch_quads =
nullptr;
91 blender::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])