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