tlp::Gl2DRect Class Reference
[GlEntities]
Create a 2D rectangle.
More...
#include <Gl2DRect.h>
List of all members.
Public Member Functions
- Gl2DRect ()
- Gl2DRect (float top, float bottom, float left, float right, const std::string &textureName, bool inPercent=false)
- Gl2DRect (float bottom, float left, float height, float width, const std::string &textureName, bool xInv, bool yInv)
- virtual ~Gl2DRect ()
- virtual BoundingBox getBoundingBox ()
- virtual void draw (float lod, Camera *camera)
- virtual void translate (const Coord &mouvement)
- virtual void setTexture (const std::string &name)
- virtual std::string getTexture ()
- virtual void setCoordinates (float bottom, float left, float width, float height)
- virtual void getXML (xmlNodePtr rootNode)
- virtual void setWithXML (xmlNodePtr rootNode)
Protected Attributes
Detailed Description
Create a 2D rectangle.
This rect add screen percentage system (for example you can create a rectangle that start on (10%,10%) and finish on (9090%) If you whan a simple 2D rectangle with normal coordinates use GlRect class
Constructor & Destructor Documentation
tlp::Gl2DRect::Gl2DRect |
( |
|
) |
|
tlp::Gl2DRect::Gl2DRect |
( |
float |
top, |
|
|
float |
bottom, |
|
|
float |
left, |
|
|
float |
right, |
|
|
const std::string & |
textureName, |
|
|
bool |
inPercent = false | |
|
) |
| | |
Constructor : with top/bottom/left/right coords, textureName and if inPercent is true coords are in percent
tlp::Gl2DRect::Gl2DRect |
( |
float |
bottom, |
|
|
float |
left, |
|
|
float |
height, |
|
|
float |
width, |
|
|
const std::string & |
textureName, |
|
|
bool |
xInv, |
|
|
bool |
yInv | |
|
) |
| | |
Constructor : with bottom/left height,width coords, textureName and if xInv/yInv is true coords viewport - coord
virtual tlp::Gl2DRect::~Gl2DRect |
( |
|
) |
[inline, virtual] |
Member Function Documentation
virtual void tlp::Gl2DRect::draw |
( |
float |
lod, |
|
|
Camera * |
camera | |
|
) |
| | [virtual] |
virtual BoundingBox tlp::Gl2DRect::getBoundingBox |
( |
|
) |
[virtual] |
virtual std::string tlp::Gl2DRect::getTexture |
( |
|
) |
[virtual] |
virtual void tlp::Gl2DRect::getXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
Function to export data in XML
Reimplemented from tlp::GlRect.
virtual void tlp::Gl2DRect::setCoordinates |
( |
float |
bottom, |
|
|
float |
left, |
|
|
float |
width, |
|
|
float |
height | |
|
) |
| | [virtual] |
Set coordinates of rectangle
virtual void tlp::Gl2DRect::setTexture |
( |
const std::string & |
name |
) |
[virtual] |
virtual void tlp::Gl2DRect::setWithXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
Function to set data with XML
Reimplemented from tlp::GlRect.
virtual void tlp::Gl2DRect::translate |
( |
const Coord & |
mouvement |
) |
[virtual] |
Member Data Documentation
|