20 #ifndef Tulip_GL2DRECT_H
21 #define Tulip_GL2DRECT_H
25 #include <tulip/GlRect.h>
56 Gl2DRect(
float top,
float bottom,
float left,
float right,
const std::string &textureName,
57 bool inPercent =
false);
70 Gl2DRect(
float bottom,
float left,
float height,
float width,
const std::string &textureName,
71 bool xInv,
bool yInv);
80 void draw(
float lod,
Camera *camera)
override;
82 void translate(
const Coord &mouvement)
override;
87 virtual void setTexture(
const std::string &name);
92 virtual std::string getTexture();
97 virtual void setCoordinates(
float bottom,
float left,
float width,
float height);
99 void getXML(std::string &outString)
override;
101 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition)
override;