VisPro  1.0
Project of Visualisierung 2
SceneObjectManager Class Reference

#include <SceneObjectManager.h>

Public Member Functions

void setObjects (Camera *c, std::vector< std::shared_ptr< PointLight >> *l, std::vector< std::shared_ptr< Environment >> *e, std::vector< std::shared_ptr< Energy >> *e_i)
 
void init (glm::vec2 dim)
 
void update (float delta_t)
 
void renderToZBuffer (ZBufferShader *z, glm::mat4 &vp)
 
int draw (const CutawaySurface *sm, bool useViewFrustumCulling)
 

Detailed Description

Manges scene objects of simulation.

Member Function Documentation

int SceneObjectManager::draw ( const CutawaySurface sm,
bool  useViewFrustumCulling 
)

Draw scene objects (on screen) using given cutaway surface. Objects of interest are drawn fully whereas secondary objects are intersected with cutaway surface.

Parameters
smcutaway surface
useViewFrustumCullingtrue to use view frustum culling
Returns
number of drawn faces
void SceneObjectManager::renderToZBuffer ( ZBufferShader z,
glm::mat4 &  vp 
)

Render scene objects to given z buffer.

Parameters
zz buffer shader
vpview projection matrix
void SceneObjectManager::update ( float  delta_t)

Update all scene objects according to time passed.

Parameters
delta_ttime passed since last update

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