00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __GEOMETRY_H__
00013 #define __GEOMETRY_H__
00014
00015 #include "Matrix4x4.h"
00016
00017
00018 class Geometry{
00019 public:
00020 Geometry() {}
00021 virtual ~Geometry() {};
00022 virtual void draw() = 0;
00023
00025 void setTransform(Matrix4x4<float>& transform) {
00026 mTransform = transform;
00027 }
00029 Matrix4x4<float>& getTransform(){
00030 return mTransform;
00031 }
00032 const Matrix4x4<float>& getTransform() const {
00033 return mTransform;
00034 }
00035
00036 protected:
00037 Matrix4x4<float> mTransform;
00038 };
00039
00040 #endif