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

Sphere Class Reference

#include <Sphere.h>

Inherits OpenGLObject.

Inheritance diagram for Sphere:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Sphere (float cx, float cy, float cz, float r, int p)
virtual ~Sphere ()

Private Member Functions

void setVertData (int index, float tu, float tv, float nx, float ny, float nz, float vx, float vy, float vz)
void createSphereGeometry (float cx, float cy, float cz, float r, int p)

Private Attributes

Vertexm_pSphereVertices
int m_nNumSphereVertices

Detailed Description

Sphere.h

Author: Petter Alstermark, petter@alstermark.com

Definition at line 14 of file Sphere.h.


Constructor & Destructor Documentation

Sphere::Sphere float  cx,
float  cy,
float  cz,
float  r,
int  p
 

Sphere.cpp

Author: Petter Alstermark, petter@alstermark.com

Definition at line 9 of file Sphere.cpp.

References Object::addFormat(), ATT_FLOAT, ATT_NORMAL, ATT_TEX, ATT_VERTEX, createSphereGeometry(), LOG_ERROR, LOG_SUCCESS, m_nNumSphereVertices, m_pSphereVertices, PRIM_QUAD_STRIP, Object::setPrimitive(), and Object::setVertices().

Here is the call graph for this function:

Sphere::~Sphere  )  [virtual]
 

Definition at line 33 of file Sphere.cpp.

References m_pSphereVertices.


Member Function Documentation

void Sphere::createSphereGeometry float  cx,
float  cy,
float  cz,
float  r,
int  p
[private]
 

Definition at line 51 of file Sphere.cpp.

References m_nNumSphereVertices, m_pSphereVertices, PI, PIDIV2, setVertData(), and TWOPI.

Referenced by Sphere().

Here is the call graph for this function:

void Sphere::setVertData int  index,
float  tu,
float  tv,
float  nx,
float  ny,
float  nz,
float  vx,
float  vy,
float  vz
[private]
 

Definition at line 37 of file Sphere.cpp.

References m_pSphereVertices.

Referenced by createSphereGeometry().


Member Data Documentation

int Sphere::m_nNumSphereVertices [private]
 

Definition at line 27 of file Sphere.h.

Referenced by createSphereGeometry(), and Sphere().

Vertex* Sphere::m_pSphereVertices [private]
 

Definition at line 26 of file Sphere.h.

Referenced by createSphereGeometry(), setVertData(), Sphere(), and ~Sphere().


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