#include <ddgnode.h>
Class diagram for ddgNode:
Public Members | |||
ddgNode (void) | |||
Constructor. | |||
virtual bool | draw ( ddgContext *ctx ) = 0 | ||
Render this node. More... | |||
virtual bool | init ( ddgContext *ctx ) | ||
Initialize the node. More... | |||
RenderFlags | mode |
Other objects can be subclassed from this object to implement differing drawing capabilities. This is an Abstract class.
virtual bool ddgNode::draw (ddgContext * c) [pure virtual]
|
Render this node.
This function must be overidden. Return true if error.
Reimplemented in ddgAxis, ddgBox, ddgCameraObj, ddgClippedFacetSet, ddgClipper, ddgCloud, ddgCylinder, ddgFacetSet, ddgFog, ddgForest, ddgForestBlock, ddgGeodesic, ddgGrass, ddgGrid, ddgGround, ddgGroup, ddgHistograph, ddgLattice, ddgLight, ddgLightModel, ddgLightObj, ddgLineObj, ddgMaterial, ddgMeshRender, ddgReflection, ddgScene, ddgSky, ddgSquare, ddgStarClass, ddgText, ddgTorus, ddgTransform, ddgTree, ddgUIColorView, ddgUIControl, ddgUIGroup, and ddgVBuffer.
virtual bool ddgNode::init (ddgContext * ctx) [virtual]
|
Initialize the node.
This function should be overridden. Return false if no error occured. true if object is already initialized. true if initialization failed, in that case mode.flags.init should be reset to false. All sub classes should have the following at the start of their init method: if (super::init()) return true;
Reimplemented in ddgBox, ddgClippedFacetSet, ddgClipper, ddgCloud, ddgDLNode, ddgFacetSet, ddgFog, ddgForest, ddgForestBlock, ddgGrass, ddgGround, ddgGroup, ddgHistograph, ddgMeshRender, ddgReflection, ddgScene, ddgSky, ddgSquare, ddgStarClass, ddgText, ddgTorus, ddgTree, and ddgVBuffer.