00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef FXGLCUBE_H
00022 #define FXGLCUBE_H
00023
00024 #ifndef FXGLSHAPE_H
00025 #include "FXGLShape.h"
00026 #endif
00027
00028 namespace FX {
00029
00030
00032 class FXAPI FXGLCube : public FXGLShape {
00033 FXDECLARE(FXGLCube)
00034 public:
00035 FXfloat width;
00036 FXfloat height;
00037 FXfloat depth;
00038 protected:
00039 FXGLCube();
00040 virtual void drawshape(FXGLViewer* viewer);
00041 public:
00042
00044 FXGLCube(FXfloat x,FXfloat y,FXfloat z,FXfloat w=1.0f,FXfloat h=1.0f,FXfloat d=1.0f);
00045
00047 FXGLCube(FXfloat x,FXfloat y,FXfloat z,FXfloat w,FXfloat h,FXfloat d,const FXMaterial& mtl);
00048
00050 FXGLCube(const FXGLCube& orig);
00051
00053 virtual FXGLObject* copy();
00054
00056 virtual void setWidth(FXfloat w);
00057 FXfloat getWidth() const { return width; }
00058
00060 virtual void setHeight(FXfloat h);
00061 FXfloat getHeight() const { return height; }
00062
00064 virtual void setDepth(FXfloat d);
00065 FXfloat getDepth() const { return depth; }
00066
00068 virtual void save(FXStream& store) const;
00069
00071 virtual void load(FXStream& store);
00072
00074 virtual ~FXGLCube();
00075 };
00076
00077 }
00078
00079 #endif