pgl
PrimitiveOpenGL3Dprimitivelibrary
All Classes Files Functions Variables
Public Member Functions | Public Attributes | List of all members
pgl::Object Class Reference

Object in a scene. More...

#include <pgl.h>

Inheritance diagram for pgl::Object:
Inheritance graph
[legend]
Collaboration diagram for pgl::Object:
Collaboration graph
[legend]

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Object()

pgl::Object::Object ( )
inline

Default constructor.

Sets initial transform to the identity matrix.


The documentation for this class was generated from the following file: