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

FX::FXGLCube Class Reference

OpenGL Cube Object. More...

#include <FXGLCube.h>

Inheritance diagram for FX::FXGLCube:

FX::FXGLShape FX::FXGLObject FX::FXObject

List of all members.

Public Member Functions

 FXGLCube (FXfloat x, FXfloat y, FXfloat z, FXfloat w=1.0f, FXfloat h=1.0f, FXfloat d=1.0f)
 FXGLCube (FXfloat x, FXfloat y, FXfloat z, FXfloat w, FXfloat h, FXfloat d, const FXMaterial &mtl)
 FXGLCube (const FXGLCube &orig)
virtual FXGLObject * copy ()
void setWidth (FXfloat w)
FXfloat getWidth () const
void setHeight (FXfloat h)
FXfloat getHeight () const
void setDepth (FXfloat d)
FXfloat getDepth () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXGLCube ()

Public Attributes

FXfloat width
FXfloat height
FXfloat depth


Detailed Description

OpenGL Cube Object.

Constructor & Destructor Documentation

FX::FXGLCube::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.

FX::FXGLCube::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.

FX::FXGLCube::FXGLCube ( const FXGLCube &  orig  ) 

Copy constructor.

virtual FX::FXGLCube::~FXGLCube (  )  [virtual]

Destroy.


Member Function Documentation

virtual FXGLObject* FX::FXGLCube::copy (  )  [virtual]

Copy this object.

Reimplemented from FX::FXGLShape.

void FX::FXGLCube::setWidth ( FXfloat  w  )  [inline]

Change width.

FXfloat FX::FXGLCube::getWidth (  )  const [inline]

void FX::FXGLCube::setHeight ( FXfloat  h  )  [inline]

Change height.

FXfloat FX::FXGLCube::getHeight (  )  const [inline]

void FX::FXGLCube::setDepth ( FXfloat  d  )  [inline]

Change depth.

FXfloat FX::FXGLCube::getDepth (  )  const [inline]

virtual void FX::FXGLCube::save ( FXStream &  store  )  const [virtual]

Save to a stream.

Reimplemented from FX::FXGLShape.

virtual void FX::FXGLCube::load ( FXStream &  store  )  [virtual]

Load from a stream.

Reimplemented from FX::FXGLShape.


Member Data Documentation

Copyright © 1997-2005 Jeroen van der Zijp