|
| MeshPainter (Usage usage, VertexFormat vf) |
|
const VertexFormat & | vertex_format () const |
|
VBO & | vert_vbo () |
|
const VBO & | vert_vbo () const |
|
template<typename Vertex > |
Vertex * | allocate_vert (size_t count) |
| Will re-use memory if same size.
|
|
template<typename Vertex > |
void | set_verts (const std::vector< Vertex > &vertices) |
|
uint32_t * | allocate_indices (size_t count) |
|
void | set_indices (const std::vector< uint32_t > &indices) |
|
void | paint (const Program &prog, GLenum mode) |
| mode == GL_TRIANGLE_STRIP or GL_TRIANGLE_FAN
|
|
void | paint_strip (const Program &prog) |
|
void | invalidate_verts () |
|
◆ allocate_indices()
uint32_t* gl::MeshPainter::allocate_indices |
( |
size_t |
count | ) |
|
|
inline |
TODO: 16 bit indices Will re-use memory if same size
The documentation for this class was generated from the following file: