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

Public Member Functions

 VoxelParticleRenderer (VoxelParticleEngine *engine)
 
void updateBuffer (int begin, int end, VoxelParticleData *data)
 
void draw (const Camera &camera)
 

Protected Member Functions

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

Protected Attributes

std::unique_ptr< VoxelMeshm_voxelMesh
 
bool m_initialized
 
VoxelParticleEnginem_engine
 
int m_bufferSize
 
Property< glm::vec3 > m_defaultLightDir
 
glow::ref_ptr< glow::Buffer > m_gpuParticleBuffer
 
glow::ref_ptr< glow::Program > m_program
 
glow::ref_ptr
< glow::VertexArrayObject > 
m_vertexArrayObject
 

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