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

FX::FXGLCube Class Reference

OpenGL Cube Object.

#include <FXGLCube.h>

Inheritance diagram for FX::FXGLCube:

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

Public Methods

 FXGLCube (FXfloat x, FXfloat y, FXfloat z, FXfloat w=1.0f, FXfloat h=1.0f, FXfloat d=1.0f)
 Construct with specified origin, width, height and depth.

 FXGLCube (FXfloat x, FXfloat y, FXfloat z, FXfloat w, FXfloat h, FXfloat d, const FXMaterial &mtl)
 Construct with specified origin, width, height, depth and material.

 FXGLCube (const FXGLCube &orig)
 Copy constructor.

virtual FXGLObjectcopy ()
 Copy this object.

void setWidth (FXfloat w)
 Change width.

FXfloat getWidth () const
void setHeight (FXfloat h)
 Change height.

FXfloat getHeight () const
void setDepth (FXfloat d)
 Change depth.

FXfloat getDepth () const
virtual void save (FXStream &store) const
 Save to a stream.

virtual void load (FXStream &store)
 Load from a stream.

virtual ~FXGLCube ()
 Destroy.


Public Attributes

FXfloat width
FXfloat height
FXfloat depth