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;
This class represents the 3D bounding box of an object. It is mostly used to determine whether or not...
Tulip OpenGL camera object.
This is a general class for the rendering of 2D rectangles.
~Gl2DRect() override
Destructor.