Om
1.0.0
A universal framework for multimedia simulation
|
A class that contains function objects that recieve context renderer events. More...
#include <omGraphicsContextRenderer.h>
Public Attributes | |
Function< void(const Time &)> | update |
A function object that is called whenever the state of a context renderer should be updated for a time interval. More... | |
Function< void(GraphicsContext &)> | startDrawing |
A function object that is called whenever an attached context renderer is starting to be drawn. More... | |
Function< void(GraphicsContext &)> | stopDrawing |
A function object that is called whenever an attached context renderer should stop drawing. More... | |
Function< void(GraphicsContext &, RenderView &)> | draw |
A function object that is called whenever an attached context renderer view should be drawn. More... | |
A class that contains function objects that recieve context renderer events.
Any context-view-related event that might be processed has an appropriate callback function object. Each callback function is called by the GUI event thread whenever such an event is received. If a callback function in the delegate is not initialized, the RenderView simply ignores it and doesn't call the function.
It must be noted that the callback functions are asynchronous and not thread-safe. Thus, it is necessary to perform any additional synchronization externally.
A function object that is called whenever the state of a context renderer should be updated for a time interval.
Function<void ( GraphicsContext& )> om::graphics::devices::GraphicsContextRenderer::Delegate::startDrawing |
A function object that is called whenever an attached context renderer is starting to be drawn.
The delegate should do initialization of graphics data in this function.
Function<void ( GraphicsContext& )> om::graphics::devices::GraphicsContextRenderer::Delegate::stopDrawing |
A function object that is called whenever an attached context renderer should stop drawing.
The delegate should do cleanup of graphics data in this function.
Function<void ( GraphicsContext&, RenderView& )> om::graphics::devices::GraphicsContextRenderer::Delegate::draw |
A function object that is called whenever an attached context renderer view should be drawn.