Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
VoxelRenderData Class Reference
Inheritance diagram for VoxelRenderData:
[legend]
Collaboration diagram for VoxelRenderData:
[legend]

Public Member Functions

 VoxelRenderData (std::unordered_map< glm::ivec3, Voxel * > &voxel)
 
void invalidate ()
 
int voxelCount ()
 
glow::VertexArrayObject * vertexArrayObject ()
 

Protected Member Functions

void updateBuffer ()
 
void setupVertexAttributes ()
 
void setupVertexAttribute (GLint offset, const std::string &name, int numPerVertex, GLenum type, GLboolean normalised, int bindingNum)
 
virtual void beforeContextDestroy () override
 
virtual void afterContextRebuild () override
 

Protected Attributes

std::unordered_map< glm::ivec3,
Voxel * > & 
m_voxel
 
bool m_isDirty
 
int m_bufferSize
 
glow::ref_ptr< glow::Buffer > m_voxelDataBuffer
 
glow::ref_ptr
< glow::VertexArrayObject > 
m_vertexArrayObject
 

The documentation for this class was generated from the following files: