#include <pgl.h>
Public Member Functions | |
Object () | |
Default constructor. More... | |
virtual void | draw () |
Draw children relative to this object. | |
![]() | |
template<class T > | |
T * | attach (T *child) |
Add child to list of sub-objects. More... | |
Public Attributes | |
Transform | transform |
Position and orientation. | |
![]() | |
std::vector< Node * > | children |
Sub-objects. | |
Object in a scene.
Basically a transform specifying the position/orientation of the object. Its children will be drawn relative to that transform. Derived classes must implement the actual drawing.
|
inline |
Default constructor.
Sets initial transform to the identity matrix.