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 FXGLObjectcopy ()
virtual void setWidth (FXfloat w)
FXfloat getWidth () const
virtual void setHeight (FXfloat h)
FXfloat getHeight () const
virtual 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.

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

Change width.

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

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

Change height.

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

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

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-2009 Jeroen van der Zijp