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