Visualization Library 2.0.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Base class providing all the basic funtionalities of a Renderer. More...
#include <RendererAbstract.hpp>
Public Member Functions | |
RendererAbstract () | |
RendererAbstract & | operator= (const RendererAbstract &other) |
virtual const RenderQueue * | render (const RenderQueue *in_render_queue, Camera *camera, real frame_clock)=0 |
Takes as input the render queue to render and returns a possibly filtered render queue for further processing. More... | |
virtual const Framebuffer * | framebuffer () const =0 |
The Framebuffer on which the rendering is performed. More... | |
virtual Framebuffer * | framebuffer ()=0 |
The Framebuffer on which the rendering is performed. More... | |
void | dispatchOnRendererStarted () |
Dispatches the onRendererStarted() event to the registered RenderEventCallback objects. More... | |
void | dispatchOnRendererFinished () |
Dispatches the onRendererFinished() event to the registered RenderEventCallback objects. More... | |
Collection< RenderEventCallback > * | onFinishedCallbacks () |
Returns the list of RenderEventCallback objects registered to onRendererFinished() event notification. More... | |
const Collection< RenderEventCallback > * | onFinishedCallbacks () const |
Returns the list of RenderEventCallback objects registered to onRendererFinished() event notification. More... | |
Collection< RenderEventCallback > * | onStartedCallbacks () |
Returns the list of RenderEventCallback objects registered to onRendererStarted() event notification. More... | |
const Collection< RenderEventCallback > * | onStartedCallbacks () const |
Returns the list of RenderEventCallback objects registered to onRendererStarted() event notification. More... | |
unsigned long | renderTick () const |
The current render tick number, equivalent to the number or calls made to the render() method. More... | |
void | incrementRenderTick () |
Increments the rendering tick count. More... | |
void | setClearFlags (EClearFlags clear_flags) |
The clear flags used to clear the viewport. More... | |
EClearFlags | clearFlags () const |
The clear flags used to clear the viewport. More... | |
void | setEnableMask (unsigned int mask) |
Enable mask used to enable/disable the rendering of matching Actors. More... | |
unsigned int | enableMask () const |
Enable mask used to enable/disable the rendering of matching Actors. More... | |
void | setFrameClock (real t) |
The current rendring frame time. More... | |
real | frameClock () const |
The current rendring frame time. More... | |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Protected Attributes | |
ref< Collection< RenderEventCallback > > | mOnFinishedCallbacks |
ref< Collection< RenderEventCallback > > | mOnStartedCallbacks |
unsigned long | mRenderTick |
unsigned int | mEnableMask |
EClearFlags | mClearFlags |
real | mFrameClock |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Base class providing all the basic funtionalities of a Renderer.
Definition at line 51 of file RendererAbstract.hpp.
|
inline |
Definition at line 56 of file RendererAbstract.hpp.
References vl::CF_CLEAR_COLOR_DEPTH.
|
inline |
The clear flags used to clear the viewport.
Definition at line 138 of file RendererAbstract.hpp.
Referenced by vl::Renderer::render(), and vl::EdgeRenderer::render().
|
inline |
Dispatches the onRendererFinished() event to the registered RenderEventCallback objects.
Definition at line 103 of file RendererAbstract.hpp.
References vl::Collection< T >::eraseAt(), and vl::Collection< T >::size().
Referenced by vl::OcclusionCullRenderer::render(), vl::Renderer::render(), and vl::EdgeRenderer::render().
|
inline |
Dispatches the onRendererStarted() event to the registered RenderEventCallback objects.
Definition at line 89 of file RendererAbstract.hpp.
References vl::Collection< T >::eraseAt(), and vl::Collection< T >::size().
Referenced by vl::OcclusionCullRenderer::render(), vl::Renderer::render(), and vl::EdgeRenderer::render().
|
inline |
Enable mask used to enable/disable the rendering of matching Actors.
Definition at line 144 of file RendererAbstract.hpp.
Referenced by vl::OcclusionCullRenderer::render(), vl::Renderer::render(), vl::EdgeRenderer::render(), and vl::OcclusionCullRenderer::render_pass2().
|
pure virtual |
The Framebuffer on which the rendering is performed.
Implemented in vl::Renderer, and vl::OcclusionCullRenderer.
Referenced by vl::EdgeRenderer::render().
|
pure virtual |
The Framebuffer on which the rendering is performed.
Implemented in vl::Renderer, and vl::OcclusionCullRenderer.
|
inline |
The current rendring frame time.
vl::Renderer passes this value to ActorEventCallback::onActorRenderStarted()
Definition at line 150 of file RendererAbstract.hpp.
|
inline |
Increments the rendering tick count.
Definition at line 132 of file RendererAbstract.hpp.
Referenced by vl::OcclusionCullRenderer::render(), and vl::EdgeRenderer::render().
|
inline |
Returns the list of RenderEventCallback objects registered to onRendererFinished() event notification.
Definition at line 117 of file RendererAbstract.hpp.
|
inline |
Returns the list of RenderEventCallback objects registered to onRendererFinished() event notification.
Definition at line 120 of file RendererAbstract.hpp.
|
inline |
Returns the list of RenderEventCallback objects registered to onRendererStarted() event notification.
Definition at line 123 of file RendererAbstract.hpp.
|
inline |
Returns the list of RenderEventCallback objects registered to onRendererStarted() event notification.
Definition at line 126 of file RendererAbstract.hpp.
|
inline |
Definition at line 67 of file RendererAbstract.hpp.
References mClearFlags, mEnableMask, mOnFinishedCallbacks, and mOnStartedCallbacks.
|
pure virtual |
Takes as input the render queue to render and returns a possibly filtered render queue for further processing.
Renderer's implementation of this function always returns in_render_queue
.
Implemented in vl::EdgeRenderer, vl::Renderer, and vl::OcclusionCullRenderer.
|
inline |
The current render tick number, equivalent to the number or calls made to the render() method.
Definition at line 129 of file RendererAbstract.hpp.
|
inline |
The clear flags used to clear the viewport.
Definition at line 135 of file RendererAbstract.hpp.
|
inline |
Enable mask used to enable/disable the rendering of matching Actors.
Definition at line 141 of file RendererAbstract.hpp.
|
inline |
The current rendring frame time.
vl::Renderer passes this value to ActorEventCallback::onActorRenderStarted()
Definition at line 147 of file RendererAbstract.hpp.
|
protected |
Definition at line 157 of file RendererAbstract.hpp.
Referenced by operator=().
|
protected |
Definition at line 156 of file RendererAbstract.hpp.
Referenced by operator=().
|
protected |
Definition at line 158 of file RendererAbstract.hpp.
|
protected |
Definition at line 153 of file RendererAbstract.hpp.
Referenced by operator=().
|
protected |
Definition at line 154 of file RendererAbstract.hpp.
Referenced by operator=().
|
protected |
Definition at line 155 of file RendererAbstract.hpp.
Referenced by vl::Renderer::render().
Visualization Library 2.0.0 Reference Documentation
Updated on Wed Dec 23 2020 12:44:11.
© Copyright Michele Bosi. All rights reserved.