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

Sphere.h

Go to the documentation of this file.
00001 
00007 #ifndef _OPENGL_SPHERE_H_
00008 #define _OPENGL_SPHERE_H_
00009 
00010 #include "../OpenGL/OpenGLObject.h"
00011 #include "../Log.h"
00012 #include <Math.h>
00013 
00014 class Sphere : public OpenGLObject {
00015         public:
00016                 Sphere(float cx, float cy, float cz, float r, int p);
00017                 virtual ~Sphere();
00018 
00019         private:
00020                 void setVertData(int index, float tu, float tv, 
00021                                                 float nx, float ny, float nz, 
00022                                                 float vx, float vy, float vz);
00023                 void createSphereGeometry(float cx, float cy, float cz, float r, int p);
00024 
00025         private:
00026                 Vertex *m_pSphereVertices;
00027                 int m_nNumSphereVertices;
00028 };
00029 
00030 #endif

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