|
pgl
PrimitiveOpenGL3Dprimitivelibrary
|
#include <pgl.h>


Public Member Functions | |
| Object () | |
| Default constructor. More... | |
| virtual void | draw () |
| Draw children relative to this object. | |
Public Member Functions inherited from pgl::Node | |
| template<class T > | |
| T * | attach (T *child) |
| Add child to list of sub-objects. More... | |
Public Attributes | |
| Transform | transform |
| Position and orientation. | |
Public Attributes inherited from pgl::Node | |
| 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.
1.8.13