tlp::GlRectTextured Class Reference#include <GlRectTextured.h>
Inherits tlp::GlSimpleEntity.
Inheritance diagram for tlp::GlRectTextured:
[legend]Collaboration diagram for tlp::GlRectTextured:
[legend]List of all members.
Detailed Description
Create a rectangle with a texture
Public Member Functions
- GlRectTextured ()
- GlRectTextured (float top, float bottom, float left, float right, const std::string &textureName, bool inPercent=false)
- GlRectTextured (float bottom, float left, float height, float width, const std::string &textureName, bool xInv, bool yInv)
- virtual ~GlRectTextured ()
- void reloadData ()
- 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
Constructor & Destructor Documentation
tlp::GlRectTextured::GlRectTextured |
( |
|
) |
[inline] |
|
tlp::GlRectTextured::GlRectTextured |
( |
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::GlRectTextured::GlRectTextured |
( |
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::GlRectTextured::~GlRectTextured |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
virtual void tlp::GlRectTextured::draw |
( |
float |
lod, |
|
|
Camera * |
camera |
|
) |
[virtual] |
|
virtual BoundingBox tlp::GlRectTextured::getBoundingBox |
( |
|
) |
[virtual] |
|
virtual std::string tlp::GlRectTextured::getTexture |
( |
|
) |
[virtual] |
|
virtual void tlp::GlRectTextured::getXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
|
void tlp::GlRectTextured::reloadData |
( |
|
) |
|
|
|
Reload data of the rectangle |
virtual void tlp::GlRectTextured::setCoordinates |
( |
float |
bottom, |
|
|
float |
left, |
|
|
float |
width, |
|
|
float |
height |
|
) |
[virtual] |
|
|
Set coordinates of rectangle |
virtual void tlp::GlRectTextured::setTexture |
( |
const std::string & |
name |
) |
[virtual] |
|
virtual void tlp::GlRectTextured::setWithXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
|
virtual void tlp::GlRectTextured::translate |
( |
const Coord & |
mouvement |
) |
[virtual] |
|
Member Data Documentation
|