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

Public Member Functions

void prepareDraw (const Camera &camera, bool withBorder=true)
 
void draw (VoxelCluster &cluster)
 
void afterDraw ()
 
bool prepared ()
 

Static Public Member Functions

static std::shared_ptr
< VoxelRenderer
instance ()
 
static glow::Program * program ()
 
static VoxelMeshvoxelMesh ()
 

Protected Member Functions

void createAndSetupShaders ()
 
virtual void beforeContextDestroy () override
 
virtual void afterContextRebuild () override
 

Protected Attributes

glow::ref_ptr< glow::Program > m_program
 
std::unique_ptr< VoxelMeshm_voxelMesh
 
bool m_prepared
 
glow::Uniform< glm::mat4 > * m_modelMatrixUniform
 
glow::Uniform< float > * m_emissivenessUniform
 

Static Protected Attributes

static std::weak_ptr
< VoxelRenderer
s_instance
 

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