Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Tube.h

Go to the documentation of this file.
00001 
00007 #ifndef _OPENGL_TUBE_H_
00008 #define _OPENGL_TUBE_H_
00009 
00010 #include "../OpenGL/OpenGLObject.h"
00011 #include "../../Util/Log.h"
00012 #include "../../Math/Math.h"
00013 
00014 class Tube : public OpenGLObject {
00015         public:
00016                 Tube(int resolution, float radius, float height, float innerRadius = 0.0f);
00017                 virtual ~Tube();
00018 
00019         private:
00020                 bool createFlatTube(int resolution, float radius, float height);
00021                 void setVertData(int index, float tu, float tv, 
00022                                                 float nx, float ny, float nz, 
00023                                                 float vx, float vy, float vz);
00024 
00025         private:
00026                 Vertex *m_pTubeVertices;
00027 };
00028 
00029 #endif

Generated on Sun Jun 5 15:47:05 2005 for Defacto by  doxygen 1.4.3