|
CgleSphere |
Methods | | Description |
| CgleSphere () | | |
| ~CgleSphere () | | |
| |
| void PreparePoints (double radius, int slices, int stacks) | | Precalculate the vertex, normal vector and texture coordinate data. |
| void Draw (double radius, int slices, int stacks, BOOL textured) | | Calculate the data if it hasn't been precalculated, then draw the sphere, optionally with texture coordinates. |
| double* GetVerts () | | Returns a pointer to the vertex data array. The array holds stacks * (slices + 1) * 6 elements. |
| double* GetNorms () | | Returns a pointer to the normal vector data array. Same number of elements as the vertex array. |
| double* GetTexCoords () | | Returns a pointer to the texture coordinate data array. The array contains stacks * (slices + 1) * 4 elements. |
|
CgleTorus |
| CgleTorus () | | |
| ~CgleTorus () | | |
| |
| void PreparePoints (double crossSectionDiameter, double radius, int slices, int rings) | | Precalculate vertex, normal vector and texture coordinate data. |
| void Draw (double crossSectionDiameter, double radius, int slices, int rings, BOOL textured) | | Calculate the data if it hasn't been precalculated, then draw the sphere, optionally with texture coordinates. |
| double* GetVerts () | | Returns a pointer to the vertex data array. The array holds slices * (rings + 1) * 6 elements. |
| double* GetNorms () | | Returns a pointer to the normal vector data array. Same number of elements as the vertex array. |
| double* GetTexCoords () | | Returns a pointer to the texture coordinate data array. The array contains slices * (rings + 1) * 4 elements. |
|
Other Shapes |
| void gleBox (double Width, double Depth, double Height, BOOL bTextured = FALSE) | | |
| void gleTetrahedron (double Scale, BOOL bTextured = FALSE) | | |
| void gleOctahedron (double Scale, BOOL bTextured = FALSE) | | |
| void gleDodecahedron (double Scale, BOOL bTextured = FALSE) | | |
| void gleIcosahedron (double Scale, BOOL bTextured = FALSE) | | |
| void gleTeapot (int complexity, double Scale, BOOL bTextured = FALSE) | | |
|
gluQuadric Wrapper |
Variables | | Description |
| static GLUquadricObject* gle32QuadObj | | The quadric used in the following functions. |
| |
Methods | | Description |
| void gleInitializeQuadric () | | Initializes the internal quadric object. |
| void gleDestroyQuadric () | | Destroy the internal quadric. |
| void gleQuickCylinder (double Radius, double Height, int Slices, int Stacks) | | |
| void gleQuickClosedCone (double BaseRadius, double Height, int Slices, int Stacks) | | Cone with a disk capping the base. |
| void gleQuickDisk (double Radius, int Slices, int Loops) | | |