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);
 
   82   void translate(
const Coord &mouvement) 
override;
 
   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;
 
Tulip OpenGL camera object.
 
virtual void setCoordinates(float bottom, float left, float width, float height)
Set coordinates of rectangle.
 
Gl2DRect()
Don't use this constructor.
 
void setWithXML(const std::string &inString, unsigned int ¤tPosition) override
Load entity with inString (in XML format)
 
virtual void setTexture(const std::string &name)
Set texture.
 
~Gl2DRect() override
Destructor.
 
Gl2DRect(float top, float bottom, float left, float right, const std::string &textureName, bool inPercent=false)
Constructor.
 
void draw(float lod, Camera *camera) override
Draw function.
 
BoundingBox getBoundingBox() override
Return the entity boundingbox.
 
virtual std::string getTexture()
Get texture.
 
Gl2DRect(float bottom, float left, float height, float width, const std::string &textureName, bool xInv, bool yInv)
Constructor.
 
void getXML(std::string &outString) override
Save the entity in outString (in XML format)
 
This is a general class for the rendering of 2D rectangles.
 
This class represents the 3D bounding box of an object. It is mostly used to determine whether or not...