|
Oxygen Engine
Modern C++ 3D Engine using OpenGL
|
Wrapper to a node reference to use pointers to node even if the actual node moves in memory. More...
#include <OxygenEngine/scene/node_ptr.h>
Collaboration diagram for oe::scene::NodePtr:Public Types | |
| using | NodeType = Node |
| using | SceneType = Scene |
Public Member Functions | |
| NodeType & | operator* () const |
| NodeType * | operator-> () const |
| bool | operator== (const NodePtr &other) const |
| Equality operator. | |
| NodeType * | get () const noexcept |
| Returns a pointer to the referenced node. | |
| operator bool () const noexcept | |
Public Attributes | |
| SceneType * | scene = nullptr |
| Scene containing the Node. | |
| uint64_t | id_node = 0 |
| Node id, unique to the scene. | |
Wrapper to a node reference to use pointers to node even if the actual node moves in memory.
This will compare to nullptr when the node is removed
|
noexcept |
Returns a pointer to the referenced node.
It is not recomended to store the resulting pointer as the node address may change during the scene lifetime