#include <PhDrawNode.h>

Public Member Functions | |
| PhDrawSceneNode (PhSceneManager *s, PhTexture *i, PhVector2d p=PhVector2d(0, 0), bool c=false) | |
| Construct. | |
| ~PhDrawSceneNode () | |
| Destruct. | |
| PhVector2d | getPosition (void) |
| Get position. | |
| void | setPosition (PhVector2d a) |
| Set position. | |
| bool | setTexture (PhTexture *img) |
| Set texture. | |
| PhTexture * | getTexture () |
| Get texture. | |
| void | setFod (bool a) |
| Free on destroy. | |
| void | onPreRender () |
| Pre render. | |
| void | onRender () |
| Render. | |
| void | onPostRender () |
| Post render. | |
Protected Attributes | |
| PhVector2d | pos |
| Position. | |
| PhTexture * | image |
| Texture. | |
| bool | fod |
| Free on destroy. | |
| PhSceneManager * | smgr |
| Scene manager. | |
| PhRenderSystem * | system |
| Render system. | |
Created more as an example than anything, this is a simple scene node that draws a texture.
| phoenix::PhDrawSceneNode::PhDrawSceneNode | ( | PhSceneManager * | s, | |
| PhTexture * | i, | |||
| PhVector2d | p = PhVector2d(0, 0), |
|||
| bool | c = false | |||
| ) |
Construct.
| s | Pointer to the scene manager. | |
| i | Texture to draw. | |
| p | Position. | |
| c | Free on Destroy. |
| PhVector2d phoenix::PhDrawSceneNode::getPosition | ( | void | ) |
| void phoenix::PhDrawSceneNode::setPosition | ( | PhVector2d | a | ) |
| bool phoenix::PhDrawSceneNode::setTexture | ( | PhTexture * | img | ) |
| PhTexture* phoenix::PhDrawSceneNode::getTexture | ( | ) |
| void phoenix::PhDrawSceneNode::setFod | ( | bool | a | ) |
Free on destroy.
If this is true then the node will automatically delete the texture when the node is destroyed.
| a | Free on destroy. |
1.5.4