VisPro  1.0
Project of Visualisierung 2
Geometry Class Reference
Inheritance diagram for Geometry:
SceneObject Environment Item Energy

Public Member Functions

 Geometry (glm::mat4 &model_matrix, std::vector< Mesh * > m)
 
virtual void update (float deltaTime)
 
int draw (const CutawaySurface *c, ViewFrustum &frust, glm::mat4 &vp, glm::vec3 cam, bool useViewFrustumCulling, float clip)
 
void draw ()
 
virtual void addChild (Geometry *g)
 
virtual void setShader (Shader *shader)
 
virtual void transformModelMatrix (glm::mat4 &transform)
 
virtual void init (std::vector< std::shared_ptr< PointLight >> *allLights, glm::vec2 dim)
 
virtual void setViewProj (glm::mat4 &vpm)
 
virtual void setCameraLoc (glm::vec3 loc)
 
virtual void renderToZBuffer (ZBufferShader *z, glm::mat4 &vp)
 
- Public Member Functions inherited from SceneObject
 SceneObject (glm::mat4 &model_matrix)
 
glm::vec3 location ()
 

Public Attributes

std::vector< Mesh * > meshes
 
std::vector< glm::vec3 > relativeMeshPositions
 
int faceCount =0
 
- Public Attributes inherited from SceneObject
glm::mat4 model_matrix
 

Member Function Documentation

int Geometry::draw ( const CutawaySurface c,
ViewFrustum frust,
glm::mat4 &  vp,
glm::vec3  cam,
bool  useViewFrustumCulling,
float  clip 
)

Draws contained geometry (collection of meshes) (on screen). Intersect geometry with given cutaway surface.

Parameters
ccutaway surface
frustview frustum
vpview projection matrix
camcamera position
useViewFrustumCullingtrue to use view frustum culling
cliptrue to clip against cutaway surface
void Geometry::renderToZBuffer ( ZBufferShader z,
glm::mat4 &  vp 
)
virtual

Render contained geometry (collection of meshes) to z buffer.

Parameters
zz buffer shader
vpview projection matrix
void Geometry::update ( float  deltaTime)
virtual

Update contained geometry (collection of meshes) according to time passed.

Parameters
deltaTimetime passed since last update

Implements SceneObject.

Reimplemented in Energy, and Item.


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