ARGoS  3
A parallel, multi-engine simulator for swarm robotics
plugins/simulator/visualizations/qt-opengl/models/qtopengl_box.h
Go to the documentation of this file.
00001 
00007 #ifndef QTOPENGL_BOX_H
00008 #define QTOPENGL_BOX_H
00009 
00010 namespace argos {
00011    class CQTOpenGLBox;
00012    class CBoxEntity;
00013 }
00014 
00015 #ifdef __APPLE__
00016 #include <gl.h>
00017 #else
00018 #include <GL/gl.h>
00019 #endif
00020 
00021 namespace argos {
00022 
00023    class CQTOpenGLBox {
00024 
00025    public:
00026 
00027       CQTOpenGLBox();
00028 
00029       virtual ~CQTOpenGLBox();
00030 
00031       virtual void DrawLEDs(CBoxEntity& c_entity);
00032       virtual void Draw(const CBoxEntity& c_entity);
00033 
00034    private:
00035 
00036       void MakeBody();
00037       void MakeLED();
00038 
00039    private:
00040 
00041       GLuint m_unBaseList;
00042       GLuint m_unBodyList;
00043       GLuint m_unLEDList;
00044       GLuint m_unVertices;
00045 
00046    };
00047 
00048 }
00049 
00050 #endif