Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXGLSphere Class Reference

OpenGL Sphere Object. More...

#include <FXGLSphere.h>

Inheritance diagram for FX::FXGLSphere:

FX::FXGLShape FX::FXGLObject FX::FXObject List of all members.

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 FXGLObjectcopy ()
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

Detailed Description

OpenGL Sphere Object.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

FXfloat FX::FXGLSphere::radius
 

FXint FX::FXGLSphere::slices
 

FXint FX::FXGLSphere::stacks
 

Copyright © 1997-2005 Jeroen van der Zijp