VisPro
1.0
Project of Visualisierung 2
|
#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) |
Manges scene objects of simulation.
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.
sm | cutaway surface |
useViewFrustumCulling | true to use view frustum culling |
void SceneObjectManager::renderToZBuffer | ( | ZBufferShader * | z, |
glm::mat4 & | vp | ||
) |
Render scene objects to given z buffer.
z | z buffer shader |
vp | view projection matrix |
void SceneObjectManager::update | ( | float | delta_t | ) |
Update all scene objects according to time passed.
delta_t | time passed since last update |