32 #ifndef RendererAbstract_INCLUDE_ONCE 33 #define RendererAbstract_INCLUDE_ONCE 58 VL_DEBUG_SET_OBJECT_NAME()
62 mEnableMask = 0xFFFFFFFF;
92 for(
size_t i=0; i<cb.
size(); ++i)
94 if ( cb[i]->isEnabled() && cb[i]->onRendererStarted(
this) && cb[i]->removeAfterCall() )
96 onStartedCallbacks()->
eraseAt( i );
106 for(
size_t i=0; i<cb.
size(); ++i)
108 if ( cb[i]->isEnabled() && cb[i]->onRendererFinished(
this) && cb[i]->removeAfterCall() )
110 onFinishedCallbacks()->
eraseAt( i );
unsigned long mRenderTick
Collection< RenderEventCallback > * onStartedCallbacks()
Returns the list of RenderEventCallback objects registered to onRendererStarted() event notification...
void eraseAt(size_t index)
void setClearFlags(EClearFlags clear_flags)
The clear flags used to clear the viewport.
ref< Collection< RenderEventCallback > > mOnFinishedCallbacks
void dispatchOnRendererFinished()
Dispatches the onRendererFinished() event to the registered RenderEventCallback objects.
Visualization Library main namespace.
void setFrameClock(real t)
The current rendring frame time.
ref< Collection< RenderEventCallback > > mOnStartedCallbacks
RendererAbstract & operator=(const RendererAbstract &other)
The base class for all the reference counted objects.
void incrementRenderTick()
Increments the rendering tick count.
Base class providing all the basic funtionalities of a Renderer.
Collection< RenderEventCallback > * onFinishedCallbacks()
Returns the list of RenderEventCallback objects registered to onRendererFinished() event notification...
unsigned long renderTick() const
The current render tick number, equivalent to the number or calls made to the render() method...
#define VLGRAPHICS_EXPORT
The RenderQueue class collects a list of RenderToken objects to be sorted and rendered.
void setEnableMask(unsigned int mask)
Enable mask used to enable/disable the rendering of matching Actors.
#define VL_INSTRUMENT_ABSTRACT_CLASS(ClassName, BaseClass)
Implements a framebuffer object to be used as a rendering target as specified by the ARB_framebuffer_...
It's basically an std::vector for Objects that is itself an Object so it can be reference counted and...
const Collection< RenderEventCallback > * onStartedCallbacks() const
Returns the list of RenderEventCallback objects registered to onRendererStarted() event notification...
The ref<> class is used to reference-count an Object.
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
real frameClock() const
The current rendring frame time.
unsigned int enableMask() const
Enable mask used to enable/disable the rendering of matching Actors.
EClearFlags clearFlags() const
The clear flags used to clear the viewport.
void dispatchOnRendererStarted()
Dispatches the onRendererStarted() event to the registered RenderEventCallback objects.
const Collection< RenderEventCallback > * onFinishedCallbacks() const
Returns the list of RenderEventCallback objects registered to onRendererFinished() event notification...