VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Public Member Functions | List of all members
RenderableInterface Class Referenceabstract

Callback set in a RenderNode which can be used to issues draw calls. More...

Inheritance diagram for RenderableInterface:
ImageRenderer ParticleRendererItem AnimatedImageRenderer MagneticHighlight

Public Member Functions

virtual void render (RenderNode *node)=0
 Renders the associated node. More...
 

Detailed Description

Callback set in a RenderNode which can be used to issues draw calls.

Member Function Documentation

virtual void RenderableInterface::render ( RenderNode node)
pure virtual

Renders the associated node.

This method should be implemented to issue GL draw calls to render the visuals associated with the given RenderNode node. This can be done using the draw calls in Renderer, (i.e. Renderer::drawMesh()), direct GL calls, or some other mechanism. It is up to the user to ensure GL state is correctly preserved as necessary.

Note
The parameter node can be used to render multiple RenderNodes in a single implementer.
Parameters
nodeRenderNode that is being rendered

Implemented in ImageRenderer, and ParticleRendererItem.