63 void setRadius(
FXfloat r){ radius=r; }
64 FXfloat getRadius()
const {
return radius; }
67 void setSlices(
FXint s){ slices=s; }
68 FXint getSlices()
const {
return slices; }
71 void setStacks(
FXint s){ stacks=s; }
72 FXint getStacks()
const {
return stacks; }
75 virtual void save(FXStream& store)
const;
78 virtual void load(FXStream& store);
81 virtual ~FXGLSphere();
Definition: FXGLViewer.h:79
Basic OpenGL object.
Definition: FXGLObject.h:39
OpenGL viewer widget.
Definition: FXGLViewer.h:100
#define FXAPI
Definition: fxdefs.h:122
FXfloat radius
Definition: FXGLSphere.h:38
Leaving ample room for FXGLViewer subclasses.
Definition: FXGLObject.h:43
int FXint
Definition: fxdefs.h:397
OpenGL Sphere Object.
Definition: FXGLSphere.h:35
OpenGL Shape Object.
Definition: FXGLShape.h:64
FXint stacks
Definition: FXGLSphere.h:40
FXint slices
Definition: FXGLSphere.h:39
float FXfloat
Definition: fxdefs.h:398
#define FXDECLARE(classname)
Macro to set up class declaration.
Definition: FXObject.h:92