GlobeEngine
GlobeComponent.h
Go to the documentation of this file.
1 
8 #ifndef GlobeEngine_Component_h
9 #define GlobeEngine_Component_h
10 
11 #include "OpenGL_Includes.h"
12 #include <string>
13 
14 namespace ge {
16  {
17  public:
19  virtual ~GlobeComponent() = 0;
20  virtual void clear();
21  virtual void create() = 0;
22  virtual void update() = 0;
23  GLuint getUID() const;
24  virtual void setUID(GLuint _input);
25  GLuint getGroupID() const;
26  virtual void setGroupID(GLuint _input);
27 
28  const std::string getName() const;
29  void setName(std::string _name);
30 
31  protected:
32  int uid;
33  int group_uid;
34  std::string name;
35  };
36 
38  {
39  public:
41 
42  GLuint getComponentCount() { return componentCount; };
43  void raise() { componentCount++; };
44  protected:
47 
48  private:
49  GLuint componentCount;
50  };
51 }
52 #endif
virtual ~GlobeComponent()=0
Definition: GlobeComponent.cpp:10
GLuint getComponentCount()
Definition: GlobeComponent.h:42
Definition: GlobeComponent.h:37
std::string name
Definition: GlobeComponent.h:34
int uid
Definition: GlobeComponent.h:32
virtual void update()=0
GlobeComponent()
Definition: GlobeComponent.h:18
const std::string getName() const
Definition: GlobeComponent.cpp:42
virtual void create()=0
virtual void clear()
Definition: GlobeComponent.cpp:13
GLuint getGroupID() const
Definition: GlobeComponent.cpp:32
void setName(std::string _name)
Definition: GlobeComponent.cpp:46
virtual void setUID(GLuint _input)
Definition: GlobeComponent.cpp:27
Definition: GlobeComponent.h:15
GlobeComponentManager()
Definition: GlobeComponent.h:45
virtual void setGroupID(GLuint _input)
Definition: GlobeComponent.cpp:37
Definition: AvalancheTrainingSimulationEngine.h:28
static GlobeComponentManager & instance()
Definition: GlobeComponent.cpp:50
int group_uid
Definition: GlobeComponent.h:33
GLuint getUID() const
Definition: GlobeComponent.cpp:22