ARGoS  3
A parallel, multi-engine simulator for swarm robotics
qtopengl_box.h
Go to the documentation of this file.
1 
7 #ifndef QTOPENGL_BOX_H
8 #define QTOPENGL_BOX_H
9 
10 namespace argos {
11  class CQTOpenGLBox;
12  class CBoxEntity;
13 }
14 
15 #ifdef __APPLE__
16 #include <gl.h>
17 #else
18 #include <GL/gl.h>
19 #endif
20 
21 namespace argos {
22 
23  class CQTOpenGLBox {
24 
25  public:
26 
27  CQTOpenGLBox();
28 
29  virtual ~CQTOpenGLBox();
30 
31  virtual void DrawLEDs(CBoxEntity& c_entity);
32  virtual void Draw(const CBoxEntity& c_entity);
33 
34  private:
35 
36  void MakeBody();
37  void MakeLED();
38 
39  private:
40 
41  GLuint m_unBaseList;
42  GLuint m_unBodyList;
43  GLuint m_unLEDList;
44  GLuint m_unVertices;
45 
46  };
47 
48 }
49 
50 #endif
argos
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
argos::CBoxEntity
Definition: box_entity.h:20
argos::CQTOpenGLBox::Draw
virtual void Draw(const CBoxEntity &c_entity)
Definition: qtopengl_box.cpp:88
argos::CQTOpenGLBox::CQTOpenGLBox
CQTOpenGLBox()
Definition: qtopengl_box.cpp:28
argos::CQTOpenGLBox
Definition: qtopengl_box.h:23
argos::CQTOpenGLBox::DrawLEDs
virtual void DrawLEDs(CBoxEntity &c_entity)
Definition: qtopengl_box.cpp:58
argos::CQTOpenGLBox::~CQTOpenGLBox
virtual ~CQTOpenGLBox()
Definition: qtopengl_box.cpp:51