emilib
Public Member Functions | List of all members
gl::MeshPainter Class Reference

Public Member Functions

 MeshPainter (Usage usage, VertexFormat vf)
 
const VertexFormatvertex_format () const
 
VBOvert_vbo ()
 
const VBOvert_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 ()
 

Member Function Documentation

◆ 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: