Buffers of vertices, colors, and indices. More...
#include <glv_draw.h>
Public Member Functions | |
const Buffer< Color > & | colors () const |
Get color buffer. | |
const Buffer< unsigned > & | indices () const |
Get index buffer. | |
const Buffer< Point2 > & | vertices2 () const |
Get 2D vertex buffer. | |
const Buffer< Point3 > & | vertices3 () const |
Get 3D vertex buffer. | |
void | reset () |
Reset all buffers. | |
void | addColor (const Color &c) |
Append color. | |
void | addColor (const Color &c1, const Color &c2) |
Append colors. | |
void | addColor (const Color &c1, const Color &c2, const Color &c3) |
Append colors. | |
void | addColor (const Color &c1, const Color &c2, const Color &c3, const Color &c4) |
Append colors. | |
void | addIndex (unsigned i) |
Append index. | |
void | addIndex (unsigned i1, unsigned i2) |
Append indices. | |
void | addIndex (unsigned i1, unsigned i2, unsigned i3) |
Append indices. | |
void | addIndex (unsigned i1, unsigned i2, unsigned i3, unsigned i4) |
Append indices. | |
void | addVertex (double x, double y) |
Append 2D vertex. | |
void | addVertex (double x, double y, double z) |
Append 3D vertex. | |
void | addVertex2 (double x, double y) |
Append 2D vertex. | |
void | addVertex2 (double x1, double y1, double x2, double y2) |
Append 2D vertices. | |
void | addVertex2 (double x1, double y1, double x2, double y2, double x3, double y3) |
Append 2D vertices. | |
void | addVertex2 (double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) |
Append 2D vertices. | |
template<class VEC2 > | |
void | addVertex2 (const VEC2 &v) |
Append 2D vertex. | |
void | addVertex3 (double x, double y, double z) |
Append 3D vertex. | |
template<class VEC3 > | |
void | addVertex3 (const VEC3 &v) |
Append 3D vertex. | |
Buffer< Color > & | colors () |
Get mutable color buffer. | |
Buffer< unsigned > & | indices () |
Get mutable index buffer. | |
Buffer< Point2 > & | vertices2 () |
Get mutable 2D vertex buffer. | |
Buffer< Point3 > & | vertices3 () |
Get mutable 3D vertex buffer. |
Buffers of vertices, colors, and indices.