ARGoS  3
A parallel, multi-engine simulator for swarm robotics
qtopengl_miniquadrotor.h
Go to the documentation of this file.
1 
7 #ifndef QTOPENGL_MINI_QUADROTOR_H
8 #define QTOPENGL_MINI_QUADROTOR_H
9 
10 namespace argos {
11  class CQTOpenGLMiniQuadrotor;
12  class CMiniQuadrotorEntity;
13 }
14 
15 
16 #ifdef __APPLE__
17 #include <gl.h>
18 #else
19 #include <GL/gl.h>
20 #endif
21 
22 namespace argos {
23 
25 
26  public:
27 
29 
30  virtual ~CQTOpenGLMiniQuadrotor();
31 
32  virtual void Draw(CMiniQuadrotorEntity& c_entity);
33 
34  protected:
35 
37  void SetBodyMaterial();
38 
40  void SetBoardMaterial();
41 
43  void SetBladeMaterial();
44 
46  void MakeBody();
47 
49  void MakeBoard();
50 
52  void MakeArm();
53 
55  void MakePropeller();
56 
57  private:
58 
60  GLuint m_unVertices;
61 
63  GLuint m_unLists;
64 
65  };
66 
67 }
68 
69 #endif
argos::CQTOpenGLMiniQuadrotor
Definition: qtopengl_miniquadrotor.h:24
argos
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
argos::CQTOpenGLMiniQuadrotor::Draw
virtual void Draw(CMiniQuadrotorEntity &c_entity)
Definition: qtopengl_miniquadrotor.cpp:62
argos::CMiniQuadrotorEntity
Definition: miniquadrotor_entity.h:21
argos::CQTOpenGLMiniQuadrotor::SetBladeMaterial
void SetBladeMaterial()
Sets the blade material.
Definition: qtopengl_miniquadrotor.cpp:98
argos::CQTOpenGLMiniQuadrotor::MakeBoard
void MakeBoard()
The robot board.
Definition: qtopengl_miniquadrotor.cpp:148
argos::CQTOpenGLMiniQuadrotor::MakeBody
void MakeBody()
The robot body.
Definition: qtopengl_miniquadrotor.cpp:112
argos::CQTOpenGLMiniQuadrotor::SetBodyMaterial
void SetBodyMaterial()
Sets the body material.
Definition: qtopengl_miniquadrotor.cpp:70
argos::CQTOpenGLMiniQuadrotor::MakePropeller
void MakePropeller()
One of the four propellers.
Definition: qtopengl_miniquadrotor.cpp:240
argos::CQTOpenGLMiniQuadrotor::CQTOpenGLMiniQuadrotor
CQTOpenGLMiniQuadrotor()
Definition: qtopengl_miniquadrotor.cpp:42
argos::CQTOpenGLMiniQuadrotor::~CQTOpenGLMiniQuadrotor
virtual ~CQTOpenGLMiniQuadrotor()
Definition: qtopengl_miniquadrotor.cpp:55
argos::CQTOpenGLMiniQuadrotor::MakeArm
void MakeArm()
On of the two trasversal arms to which propellers are attached.
Definition: qtopengl_miniquadrotor.cpp:194
argos::CQTOpenGLMiniQuadrotor::SetBoardMaterial
void SetBoardMaterial()
Sets the board material.
Definition: qtopengl_miniquadrotor.cpp:84