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

Protected Member Functions

virtual void drawshape (FXGLViewer *viewer)

Detailed Description

OpenGL Cube Object.


The documentation for this class was generated from the following file:

Copyright © 1997-2011 Jeroen van der Zijp