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 ()
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.

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

Change height.

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

Change depth.

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.

Copyright © 1997-2005 Jeroen van der Zijp