![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXGLSphere.h>
Public Member Functions | |
FXGLSphere (FXfloat x, FXfloat y, FXfloat z, FXfloat r=1.0f) | |
FXGLSphere (FXfloat x, FXfloat y, FXfloat z, FXfloat r, const FXMaterial &mtl) | |
FXGLSphere (const FXGLSphere &orig) | |
virtual FXGLObject * | copy () |
void | setRadius (FXfloat r) |
FXfloat | getRadius () const |
void | setSlices (FXint s) |
FXint | getSlices () const |
void | setStacks (FXint s) |
FXint | getStacks () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXGLSphere () |
Public Attributes | |
FXfloat | radius |
FXint | slices |
FXint | stacks |
OpenGL Sphere Object.
FX::FXGLSphere::FXGLSphere | ( | FXfloat | x, |
FXfloat | y, | ||
FXfloat | z, | ||
FXfloat | r = 1.0f |
||
) |
Construct with specified origin and radius.
FX::FXGLSphere::FXGLSphere | ( | FXfloat | x, |
FXfloat | y, | ||
FXfloat | z, | ||
FXfloat | r, | ||
const FXMaterial & | mtl | ||
) |
Construct with specified origin, radius and material.
FX::FXGLSphere::FXGLSphere | ( | const FXGLSphere & | orig | ) |
Copy constructor.
virtual FX::FXGLSphere::~FXGLSphere | ( | ) | [virtual] |
Destroy.
virtual FXGLObject* FX::FXGLSphere::copy | ( | ) | [virtual] |
Copy this object.
Reimplemented from FX::FXGLShape.
void FX::FXGLSphere::setRadius | ( | FXfloat | r | ) | [inline] |
Change radius.
FXfloat FX::FXGLSphere::getRadius | ( | ) | const [inline] |
void FX::FXGLSphere::setSlices | ( | FXint | s | ) | [inline] |
Change slices.
FXint FX::FXGLSphere::getSlices | ( | ) | const [inline] |
void FX::FXGLSphere::setStacks | ( | FXint | s | ) | [inline] |
Change stacks.
FXint FX::FXGLSphere::getStacks | ( | ) | const [inline] |
virtual void FX::FXGLSphere::save | ( | FXStream & | store | ) | const [virtual] |
Save to a stream.
Reimplemented from FX::FXGLShape.
virtual void FX::FXGLSphere::load | ( | FXStream & | store | ) | [virtual] |
Load from a stream.
Reimplemented from FX::FXGLShape.
![]() |