00001 00002 #ifndef __TRANSFORMERPAN_H 00003 #define __TRANSFORMERPAN_H 00004 00005 #include "Matrix.h" 00006 00007 #include "Transformer.h" 00008 00022 class TransformerPan: public Transformer { 00023 private: 00025 float m_startX, m_startY; 00033 float m_scale; 00034 00035 public: 00037 TransformerPan(int width, int height, float scale); 00038 00044 void reshape(int width, int height); 00045 00051 void start(float x, float y); 00052 00058 const Matrix end(float x, float y); 00059 }; 00060 00061 #endif // __TRANSFORMERPAN_H