phoenix::PhDrawSceneNode Class Reference

Draw scene node. More...

#include <PhDrawNode.h>

Inheritance diagram for phoenix::PhDrawSceneNode:

phoenix::PhSceneNode

List of all members.

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.
PhTexturegetTexture ()
 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.
PhTextureimage
 Texture.
bool fod
 Free on destroy.
PhSceneManagersmgr
 Scene manager.
PhRenderSystemsystem
 Render system.


Detailed Description

Draw scene node.

Created more as an example than anything, this is a simple scene node that draws a texture.


Constructor & Destructor Documentation

phoenix::PhDrawSceneNode::PhDrawSceneNode ( PhSceneManager s,
PhTexture i,
PhVector2d  p = PhVector2d(0, 0),
bool  c = false 
)

Construct.

Parameters:
s Pointer to the scene manager.
i Texture to draw.
p Position.
c Free on Destroy.


Member Function Documentation

PhVector2d phoenix::PhDrawSceneNode::getPosition ( void   ) 

Get position.

Returns:
The position of the node.
See also:
setPosition()

void phoenix::PhDrawSceneNode::setPosition ( PhVector2d  a  ) 

Set position.

Parameters:
a The new position of the node.
See also:
getPosition()

bool phoenix::PhDrawSceneNode::setTexture ( PhTexture img  ) 

Set texture.

Parameters:
img The new texture of the node.
See also:
getTexture()

PhTexture* phoenix::PhDrawSceneNode::getTexture (  ) 

Get texture.

Returns:
The current texture of the node.
See also:
setTexture()

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.

Parameters:
a Free on destroy.


The documentation for this class was generated from the following file:
Generated on Tue Nov 20 21:59:24 2007 for Phoenix by  doxygen 1.5.4