#include <Sphere.h>
Inherits OpenGLObject.
Inheritance diagram for Sphere:
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 | |
Vertex * | m_pSphereVertices |
int | m_nNumSphereVertices |
Author: Petter Alstermark, petter@alstermark.com
Definition at line 14 of file Sphere.h.
|
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: |
|
Definition at line 33 of file Sphere.cpp. References m_pSphereVertices. |
|
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: |
|
Definition at line 37 of file Sphere.cpp. References m_pSphereVertices. Referenced by createSphereGeometry(). |
|
Definition at line 27 of file Sphere.h. Referenced by createSphereGeometry(), and Sphere(). |
|
Definition at line 26 of file Sphere.h. Referenced by createSphereGeometry(), setVertData(), Sphere(), and ~Sphere(). |