|
CeresEngine 0.2.0
A game development framework
|
A view group is a similar concept to a view, except it contains multiple views. More...
#include <CeresEngine/Renderer/RendererView.hpp>
Public Member Functions | |
| RendererViewGroup () | |
Creates a new RendererViewGroup. | |
| virtual | ~RendererViewGroup () |
Destroys the RendererViewGroup and releases any renderer (and RenderAPI)-related resources. | |
| virtual Vector< RendererView * > | getViews () const |
| Returns a vector of all views in the view group. | |
A view group is a similar concept to a view, except it contains multiple views.
This is used when there are a set of views that each render from the same point but for multiple perspectives, like rendering the scene to capture the environment. This allows the renderer to reuse work that can be shared between all views in the group.
For instance, when drawing the environment for a probe, we can render the shadow map only once and then reuse them for all 6 rendering perspectives.
| CeresEngine::RendererViewGroup::RendererViewGroup | ( | ) |
Creates a new RendererViewGroup.
|
virtual |
Destroys the RendererViewGroup and releases any renderer (and RenderAPI)-related resources.
|
virtual |
Returns a vector of all views in the view group.
All these views are correlated in some form and can share certain resources such as perspective shadow maps.