GlobeEngine
MeshExampleComposition.h
Go to the documentation of this file.
1 
8 #ifndef GlobeEngine_GlobeMeshExampleComposition_h
9 #define GlobeEngine_GlobMeshExampleComposition_h
10 
11 #include "Composition.h"
12 #include "PointLight.h"
13 
14 namespace geMeshExample {
15 
17  {
18  public:
21 
22  void enableUIFbo() {
23  this->fboUIActive = true;
24  }
25 
26  void disableUIFbo(){
27  this->fboUIActive = false;
28  }
29 
30  bool isUIFboactive(){
31  return this->fboUIActive;
32  }
33 
34  void setPointLightPosition(vmml::Vector3d _pos){
35  pointLight.setPosition(_pos);
36  }
37 
38  protected:
39  void drawFrame(std::shared_ptr<ge::Camera> _cam);
40 
41  private:
42  bool fboUIActive;
43 
44  ge::PointLight pointLight;
45  vmml::Vector2f lightPositionOnScreen;
46  };
47 }
48 #endif
Definition: MeshExampleComposition.h:16
void enableUIFbo()
Definition: MeshExampleComposition.h:22
MeshExampleComposition()
Definition: MeshExampleComposition.cpp:10
Definition: PointLight.h:18
void disableUIFbo()
Definition: MeshExampleComposition.h:26
Definition: MeshExampleComposition.h:14
~MeshExampleComposition()
Definition: MeshExampleComposition.h:20
void setPosition(vmml::Vector3d _pos)
Definition: Light.cpp:70
bool isUIFboactive()
Definition: MeshExampleComposition.h:30
Definition: Composition.h:23
void setPointLightPosition(vmml::Vector3d _pos)
Definition: MeshExampleComposition.h:34
void drawFrame(std::shared_ptr< ge::Camera > _cam)
Definition: MeshExampleComposition.cpp:19