32 #ifndef Rendering_INCLUDE_ONCE 33 #define Rendering_INCLUDE_ONCE 83 virtual void render();
105 renderers().push_back(renderer);
111 if (renderers().empty())
114 return renderers()[0].get();
120 if (renderers().empty())
123 return renderers()[0].get();
196 const std::map<unsigned int, ref<Effect> >&
effectOverrideMask()
const {
return mEffectOverrideMask; }
void setCamera(Camera *camera)
The Camera that defines the point of view and viewport to be used when rendering the scene...
ref< RenderQueueSorter > mRenderQueueSorter
Collection< Renderer > & renderers()
The list of Renderers used to perform the rendering.
void setAutomaticResourceInit(bool enable)
Whether OpenGL resources such as textures and GLSL programs should be automatically initialized when ...
const Transform * transform() const
The root of the Transform tree updated at every rendering frame.
bool mAutomaticResourceInit
The Renderer class executes the actual rendering on the given RenderQueue.
The RenderingAbstract class is the base of all the rendering related sub-classes. ...
std::map< unsigned int, ref< Effect > > & effectOverrideMask()
A bitmask/Effect map used to everride the Effect of those Actors whose enable mask satisfy the follow...
RenderQueueSorter * renderQueueSorter()
The RenderQueueSorter used to perform the sorting of the objects to be rendered, if NULL no sorting i...
ref< ActorCollection > mActorQueue
Transform * transform()
The root of the Transform tree updated at every rendering frame.
Renderer * renderer()
Utility function: returns the first renderer installed or NULL if none is found.
const Camera * camera() const
The Camera that defines the point of view and viewport to be used when rendering the scene...
Camera * camera()
The Camera that defines the point of view and viewport to be used when rendering the scene...
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
void setTransform(Transform *transform)
The root of the Transform tree updated at every rendering frame.
bool nearFarClippingPlanesOptimized() const
Returns whether near/far planes optimization is enabled.
bool automaticResourceInit() const
Whether OpenGL resources such as textures and GLSL programs should be automatically initialized befor...
void setCullingEnabled(bool enabled)
Whether the installed SceneManager[s] should perform Actor culling or not in order to maximize the re...
void setShaderAnimationEnabled(bool animate_shaders)
Whether Shader::shaderAnimator()->updateShader() should be called or not.
Visualization Library main namespace.
const Collection< SceneManager > * sceneManagers() const
Returns the list of SceneManager[s] containing the Actor[s] to be rendered.
void setRenderer(Renderer *renderer)
Uitlity function: clears the renderers() list and adds the specified one.
Collection< Renderer > mRenderers
Rendering(const Rendering &other)
Copy constructor.
ActorCollection * actorQueue()
void setEvaluateLOD(bool evaluate_lod)
Whether the Level-Of-Detail should be evaluated or not.
std::map< unsigned int, ref< Effect > > mEffectOverrideMask
bool shaderAnimationEnabled() const
Whether Shader::shaderAnimator()->updateShader() should be called or not.
const Renderer * renderer() const
Utility function: returns the first renderer installed or NULL if none is found.
The Rendering class collects all the information to perform the rendering of a scene.
bool cullingEnabled() const
Whether the installed SceneManager[s] should perform Actor culling or not in order to maximize the re...
ref< RenderQueue > mRenderQueue
#define VLGRAPHICS_EXPORT
The RenderQueue class collects a list of RenderToken objects to be sorted and rendered.
void setRenderQueueSorter(RenderQueueSorter *render_queue_sorter)
The RenderQueueSorter used to perform the sorting of the objects to be rendered, if NULL no sorting i...
Defined as a simple subclass of Collection<Actor>, see Collection for more information.
ref< Collection< SceneManager > > mSceneManagers
It's basically an std::vector for Objects that is itself an Object so it can be reference counted and...
void setNearFarClippingPlanesOptimized(bool enabled)
Enabled/disables near/far planes optimization.
ref< Transform > mTransform
The ref<> class is used to reference-count an Object.
bool mShaderAnimationEnabled
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
bool evaluateLOD() const
Whether the Level-Of-Detail should be evaluated or not.
bool mNearFarClippingPlanesOptimized
The RenderQueueSorter class is the abstract base class of all the algorithms used to sort a set of Re...
RenderQueue * renderQueue()
const Collection< Renderer > & renderers() const
The list of Renderers used to perform the rendering.
Collection< SceneManager > * sceneManagers()
Returns the list of SceneManager[s] containing the Actor[s] to be rendered.
const std::map< unsigned int, ref< Effect > > & effectOverrideMask() const
A bitmask/Effect map used to everride the Effect of those Actors whose enable mask satisfy the follow...