1 #ifndef STATICOBJECT_H_ 2 #define STATICOBJECT_H_ 3 4 #include "../Object.h" 5 #include "Texture.h" 6 7 class StaticObject: public Object { 8 private: 9 Texture* m_texture; 10 bool m_takeCareOfTexture; 11 protected: 12 StaticObject(float x, float y, int w, int h); 13 public: 14 StaticObject(float x, float y, int w, int h, Texture *texture, 15 bool takeCareOfTexture); 16 GLuint createComplexFace(int facesCount); 17 void draw(GLuint dListId); 18 void draw(bool hreflect, bool vreflect); 19 void draw(bool hreflect, bool vreflect, float x, float y, float angle, 20 float scale); 21 void setTexture(Texture* texture, bool takeCareOfTexture); getTexture()22 Texture* getTexture() const { 23 return m_texture; 24 } 25 virtual ~StaticObject(); 26 }; 27 28 #endif /* STATICOBJECT_H_ */ 29