VoltAir
|
Callback set in a RenderNode which can be used to issues draw calls. More...
Public Member Functions | |
virtual void | render (RenderNode *node)=0 |
Renders the associated node. More... | |
Callback set in a RenderNode which can be used to issues draw calls.
|
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.
node
can be used to render multiple RenderNodes in a single implementer. node | RenderNode that is being rendered |
Implemented in ImageRenderer, and ParticleRendererItem.