VisPro  1.0
Project of Visualisierung 2
SceneObjectManager.h
Go to the documentation of this file.
1 #pragma once
2 
7 #include "PointLight.h"
8 #include "Camera.h"
9 #include "Environment.h"
10 #include "Energy.h"
11 #include "UserInput.h"
12 
16 public:
19  void setObjects(Camera* c,
20  std::vector<std::shared_ptr<PointLight>>* l,
21  std::vector<std::shared_ptr<Environment>>* e,
22  std::vector<std::shared_ptr<Energy>>* e_i);
23  void init(glm::vec2 dim);
24 
28  void update(float delta_t);
29 
34  void renderToZBuffer(ZBufferShader* z, glm::mat4& vp);
35 
42  int draw(const CutawaySurface* sm, bool useViewFrustumCulling);
43 
44 private:
45  std::vector<std::shared_ptr<PointLight>>* lights;
46  Camera* camera;
47  std::vector<std::shared_ptr<Environment>>* environment;
48  std::vector<std::shared_ptr<Energy>>* e_items;
49  ViewFrustum frustum = ViewFrustum();
50 
51 
52 };
Definition: Camera.h:6
Definition: ViewFrustum.h:7
void renderToZBuffer(ZBufferShader *z, glm::mat4 &vp)
Definition: SceneObjectManager.cpp:37
User input class file.
Definition: CutawaySurface.h:14
Definition: SceneObjectManager.h:15
int draw(const CutawaySurface *sm, bool useViewFrustumCulling)
Definition: SceneObjectManager.cpp:55
Definition: ZBufferShader.h:11
void update(float delta_t)
Definition: SceneObjectManager.cpp:45