GlobeEngine
Skybox.h
Go to the documentation of this file.
1 
9 #ifndef GlobeEngine_Skybox_h
10 #define GlobeEngine_Skybox_h
11 
12 #include "OpenGL_Includes.h"
13 #include "DrawableComponent.h"
14 #include "Texture.h"
15 #include "Camera.h"
16 #include "Plane.h"
17 
18 namespace ge {
20  {
21  public:
22  Skybox();
23  ~Skybox();
24  void clear();
25  void create(std::string _texRepo, std::string _format);
26  void update();
27  //void draw(ge::Camera* _cam);
28  void draw(std::shared_ptr<ge::Camera> _cam);
29  void setPosition(vmml::Vector3d _position);
30 
31  protected:
32  void create();
33 
34  std::string texRepo;
35  GLuint texHandles[6];
36 
38 
45 
46  };
47 }
48 #endif
Definition: DrawableComponent.h:25
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: Skybox.cpp:86
void setPosition(vmml::Vector3d _position)
Definition: Skybox.cpp:63
void create()
Definition: Skybox.cpp:47
void update()
Definition: Skybox.cpp:97
Definition: Plane.h:26
Definition: Skybox.h:19
ge::Texture2Drgba front
Definition: Skybox.h:42
ge::Texture2Drgba bottom
Definition: Skybox.h:39
void clear()
Definition: Skybox.cpp:22
ge::Texture2Drgba top
Definition: Skybox.h:40
ge::Texture2Drgba right
Definition: Skybox.h:44
Skybox()
Definition: Skybox.cpp:12
Plane planes[6]
Definition: Skybox.h:37
ge::Texture2Drgba back
Definition: Skybox.h:41
Definition: AvalancheTrainingSimulationEngine.h:28
std::string texRepo
Definition: Skybox.h:34
ge::Texture2Drgba left
Definition: Skybox.h:43
~Skybox()
Definition: Skybox.cpp:17
GLuint texHandles[6]
Definition: Skybox.h:35