Om
1.0.0
A universal framework for multimedia simulation
|
An interface for classes that draw graphics scenes. More...
#include <omGraphicsSceneRenderer.h>
Classes | |
class | Delegate |
A class that contains function objects that respond to scene renderer events. More... | |
Public Member Functions | |
virtual Bool | renderScene (const SceneRenderRequest &request)=0 |
Render a scene to the current framebuffer using the parameters of the specified request. More... | |
Delegate & | getDelegate () |
Return an object that handles events for this context renderer. More... | |
const Delegate & | getDelegate () const |
Return an object that handles events for this context renderer. More... | |
void | setDelegate (const Delegate &newDelegate) |
Set an object that handles events for this context renderer. More... | |
Public Member Functions inherited from om::graphics::renderers::Renderer | |
virtual | ~Renderer () |
Destroy a renderer object. More... | |
virtual void | render () |
Do the main rendering for this renderer. More... | |
GraphicsContext * | getContext () const |
Return a pointer to the graphics context that the renderer is using. More... | |
virtual void | setContext (GraphicsContext *newContext) |
Set a pointer to the graphics context that this renderer should use. More... | |
void | clearContext () |
Clear the previous context from this object. More... | |
Protected Attributes | |
Delegate | delegate |
An object that responds to events for this scene renderer. More... | |
Protected Attributes inherited from om::graphics::renderers::Renderer | |
GraphicsContext * | context |
A pointer to the graphics context this object is using. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from om::graphics::renderers::Renderer | |
Renderer () | |
Create a new graphics renderer that doesn't have an associated graphics context. More... | |
Renderer (GraphicsContext *newContext) | |
Create a new graphics renderer that uses the specified context for rendering. More... | |
An interface for classes that draw graphics scenes.
|
pure virtual |
Render a scene to the current framebuffer using the parameters of the specified request.
The method returns whether or not the rendering was successful.
Implemented in om::graphics::renderers::ForwardRenderer, and om::graphics::renderers::RayRenderer.
|
inline |
Return an object that handles events for this context renderer.
|
inline |
Return an object that handles events for this context renderer.
|
inline |
Set an object that handles events for this context renderer.
|
protected |
An object that responds to events for this scene renderer.