00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 #ifndef GLTRANSFORM_H
00019 #define GLTRANSFORM_H
00020 
00021 
00022 #include "glscene.h"
00023 #include "glvector.h"
00028 namespace GLScene
00029 {
00030 
00031 class GLTranslation: public GLTransform, public GLFieldHolder
00032 {
00033 public:
00034    static std::string transName;
00035 
00036    GLTranslation();
00037    GLTranslation( GLVector);
00038    GLTranslation( GLfloat, GLfloat, GLfloat);
00039     ~GLTranslation();
00040 
00041    SML_TAG(translate);
00042 
00043    GLField< GLVector > trans;
00044 
00045    virtual FieldBasePtr getFieldByIndex( short index );
00046 
00047    virtual void render();
00048 };
00049 
00050 class GLScaling: public GLTransform, public GLFieldHolder
00051 {
00052 public:
00053    static std::string scaleName;
00054    
00055     GLScaling();
00056    GLScaling( GLVector);
00057    GLScaling( GLfloat, GLfloat, GLfloat);
00058     ~GLScaling();
00059 
00060    SML_TAG(scale);
00061 
00062    GLField< GLVector > scale;
00063 
00064    virtual FieldBasePtr getFieldByIndex( short index );
00065 
00066    virtual void render();
00067 };
00068 
00069 };
00070 #endif