A node in the scene tree.
More...
A node in the scene tree.
Can be traveres using an ITraversalAlgorithm.
◆ this()
SceneNode::this |
( |
string | name, |
|
|
GameObject | gameObject = null ) |
|
inline |
Initialize a new scene tree node.
- Parameters
-
name | the name of the node. |
gameObject | the linked GameObject (optional). |
◆ Find()
SceneNode SceneNode::Find |
( |
string | targetName | ) |
|
|
inline |
Recursively find a given node in the scene tree.
- Parameters
-
targetName | the name of the node to find. |
- Returns
- the first descendent node with the given name.
◆ Render()
void SceneNode::Render |
( |
SDL_Renderer * | renderer, |
|
|
SDL_Rect * | camera, |
|
|
bool | ignore_player = false ) |
|
inline |
Recursively render this node's GameObject and all child GameObject nodes.
- Parameters
-
renderer | the SDL renderer. |
camera | the camera location and size. |
ignore_player | whether to ignore the player or not. |
- See also
- GameObject::Render
◆ Update()
void SceneNode::Update |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: