GlobeEngine
Cube.h
Go to the documentation of this file.
1 
7 #ifndef GlobeEngine_Cube_h
8 #define GlobeEngine_Cube_h
9 
10 #include "OpenGL_Includes.h"
11 #include "DrawableComponent.h"
12 
13 namespace ge {
14  class Cube : public ge::DrawableComponent
15  {
16  public:
17  Cube();
18  ~Cube();
19  void clear();
20  void create();
21  void update();
22  void draw(std::shared_ptr<ge::Camera> _cam);
23 
24  void setNormalHandle(GLuint _texHandle = 0);
25  void setDisparityTextureHandle(GLuint _texHandle = 0);
26 
27  void selectTexture(int _layer);
28 
29  private:
30  void createPositionBuffer();
31  void createIndexBuffer();
32  void createTextureCoordBuffer();
33  void createTangetVectorBuffer();
34  void createNormalVectorBuffer();
35 
36  GLuint disparityHandle;
37 
38  int selectedTexture;
39  };
40 }
41 #endif
void selectTexture(int _layer)
Definition: Cube.cpp:305
Definition: DrawableComponent.h:25
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: Cube.cpp:55
Definition: Cube.h:14
void clear()
Definition: Cube.cpp:21
void setNormalHandle(GLuint _texHandle=0)
void setDisparityTextureHandle(GLuint _texHandle=0)
Definition: Cube.cpp:300
~Cube()
Definition: Cube.cpp:16
void create()
Definition: Cube.cpp:26
Definition: AvalancheTrainingSimulationEngine.h:28
Cube()
Definition: Cube.cpp:11
void update()
Definition: Cube.cpp:97