Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

peon::SceneRoot Class Reference

This object represents the "Base node" of a scene graph for you to play with. More...

#include <SceneRoot.h>

Inheritance diagram for peon::SceneRoot:

peon::ISceneObject peon::ISingleton< SceneRoot > peon::IUnknown List of all members.

Public Member Functions

 SceneRoot (SceneRenderer *pRenderer)
 Constructor.
 ~SceneRoot ()
 Destructor.

Static Public Member Functions

static SceneRootgetSingleton (void)
 Override standard Singleton retrieval.
static SceneRootgetSingletonPtr (void)
 Override standard Singleton retrieval.

Protected Attributes

SceneRendererm_pRenderer
 our SceneRenderer handle

Detailed Description

This object represents the "Base node" of a scene graph for you to play with.

Right now this is little more than a display list, but it gives you an idea of what's possible. To create a true Octree or QuadTree structure is left as your own exercise.


Member Function Documentation

static SceneRoot& peon::SceneRoot::getSingleton void   )  [static]
 

Override standard Singleton retrieval.

Remarks:
Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll.
This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors.

Reimplemented from peon::ISingleton< SceneRoot >.

static SceneRoot* peon::SceneRoot::getSingletonPtr void   )  [static]
 

Override standard Singleton retrieval.

Remarks:
Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll.
This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors.

Reimplemented from peon::ISingleton< SceneRoot >.


The documentation for this class was generated from the following file:
Generated on Thu Dec 1 01:55:41 2005 for Peon by  doxygen 1.4.1