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 Types

enum  { ID_LAST = FXGLShape::ID_LAST }

Public Member Functions

 FXGLSphere (FXfloat x, FXfloat y, FXfloat z, FXfloat r=1.0f)
 Construct with specified origin and radius.
 FXGLSphere (FXfloat x, FXfloat y, FXfloat z, FXfloat r, const FXMaterial &mtl)
 Construct with specified origin, radius and material.
 FXGLSphere (const FXGLSphere &orig)
 Copy constructor.
virtual FXGLObjectcopy ()
 Copy this object.
virtual void setRadius (FXfloat r)
 Change radius.
FXfloat getRadius () const
void setSlices (FXint s)
 Change slices.
FXint getSlices () const
void setStacks (FXint s)
 Change stacks.
FXint getStacks () const
virtual void save (FXStream &store) const
 Save to a stream.
virtual void load (FXStream &store)
 Load from a stream.
virtual ~FXGLSphere ()
 Destroy.

Public Attributes

FXfloat radius
FXint slices
FXint stacks

Protected Member Functions

virtual void drawshape (FXGLViewer *viewer)

Detailed Description

OpenGL Sphere Object.


The documentation for this class was generated from the following file:

Copyright © 1997-2011 Jeroen van der Zijp