GlobeEngine
Plane.h
Go to the documentation of this file.
1 
17 #ifndef GlobeEngine_Plane_h
18 #define GlobeEngine_Plane_h
19 
20 #include "OpenGL_Includes.h"
21 #include "DrawableComponent.h"
22 #include <vmmlib/vmmlib.hpp>
23 
24 namespace ge
25 {
27  {
28  public:
29  Plane();
30  ~Plane();
31  void create() override;
32  void clear() override;
33  void draw(std::shared_ptr<ge::Camera> _cam, GLuint _texHandle = 0);
34  void update() override;
35 
36  void setAlpha(float _in)
37  {
38  this->alpha = _in;
39  }
40 
41  float getAlpha() const
42  {
43  return alpha;
44  }
45 
46  private:
48 
49  float alpha;
50  };
51 }
52 #endif
Definition: DrawableComponent.h:25
void create() override
Definition: Plane.cpp:25
void update() override
Definition: Plane.cpp:97
Plane()
Definition: Plane.cpp:10
Definition: Plane.h:26
virtual void draw(std::shared_ptr< ge::Camera > _cam)
Definition: DrawableComponent.cpp:76
void setAlpha(float _in)
Definition: Plane.h:36
float getAlpha() const
Definition: Plane.h:41
void clear() override
Definition: Plane.cpp:20
~Plane()
Definition: Plane.cpp:15
void draw(std::shared_ptr< ge::Camera > _cam, GLuint _texHandle=0)
Definition: Plane.cpp:102
Definition: AvalancheTrainingSimulationEngine.h:28