#include <Drawable.h>
Public Member Functions | |
Drawable () | |
virtual | ~Drawable () |
virtual unsigned int | draw (bool wireframe=false)=0 |
Node * | getNode () const |
Protected Member Functions | |
virtual Drawable * | clone (NodeCloneContext &context)=0 |
virtual void | setNode (Node *node) |
Protected Attributes | |
Node * | _node |
Defines a drawable object that can be attached to a Node.
Constructor.
virtual gameplay::Drawable::~Drawable | ( | ) | [virtual] |
Destructor.
virtual Drawable* gameplay::Drawable::clone | ( | NodeCloneContext & | context | ) | [protected, pure virtual] |
Clones the drawable and returns a new drawable.
context | The clone context. |
Implemented in gameplay::Sprite, gameplay::Terrain, gameplay::Text, and gameplay::TileSet.
virtual unsigned int gameplay::Drawable::draw | ( | bool | wireframe = false | ) | [pure virtual] |
Draws the object.
wireframe | true if you want to request to draw the wireframe only. |
Implemented in gameplay::ParticleEmitter, gameplay::Sprite, gameplay::Terrain, gameplay::Text, gameplay::TileSet, gameplay::Model, and gameplay::Form.
Node* gameplay::Drawable::getNode | ( | ) | const |
Gets the node this drawable is attached to.
virtual void gameplay::Drawable::setNode | ( | Node * | node | ) | [protected, virtual] |
Sets the node this drawable is attached to.
node | The node this drawable is attached to. |
Reimplemented in gameplay::Terrain.
Node* gameplay::Drawable::_node [protected] |
Node this drawable is attached to.