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

Classes

struct  CameraLocation
 
struct  StarData
 

Public Member Functions

virtual void update (float deltaSec, const glm::vec3 &cameraPosition)
 
virtual void apply (FrameBuffer &frameBuffer, const RenderMetaData &metadata) override
 
- Public Member Functions inherited from RenderPass
 RenderPass (const std::string &name)
 
const std::string & name () const
 

Protected Member Functions

void createAndSetupShaders ()
 
void createAndSetupGeometry ()
 
virtual void beforeContextDestroy () override
 
virtual void afterContextRebuild () override
 
void createBinding (int index, std::string name, int offset, int size)
 
void addLocation (const Camera &camera, int side)
 
glm::mat4 getMatrixFromPast (const Camera &camera, int side)
 
void cleanUp (int side)
 

Protected Attributes

std::deque< CameraLocationm_locations [2]
 
float m_time
 
Property< float > m_starfieldAge
 
Property< float > m_starSize
 
Property< int > m_starCount
 
Property< float > m_fieldRadius
 
float m_oldFieldRadius
 
glow::ref_ptr< glow::Program > m_shaderProgram
 
glow::ref_ptr
< glow::VertexArrayObject > 
m_vertexArrayObject
 
glow::ref_ptr< glow::Buffer > m_gpuBuffer
 
glow::Array< StarDatam_cpuBuffer
 
- Protected Attributes inherited from RenderPass
std::string m_name
 

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