|
pgl
PrimitiveOpenGL3Dprimitivelibrary
|
Node in the scene graph. More...
#include <pgl.h>

Public Member Functions | |
| virtual void | draw () |
| Draw children. | |
| template<class T > | |
| T * | attach (T *child) |
| Add child to list of sub-objects. More... | |
Public Attributes | |
| std::vector< Node * > | children |
| Sub-objects. | |
Node in the scene graph.
Mainly a list of sub-objects to draw. Note that the sub-objects are owned by the node and deleted when the node itself is deleted.
|
inline |
Add child to list of sub-objects.
1.8.13