CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::RendererViewGroup Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RendererViewGroup()

CeresEngine::RendererViewGroup::RendererViewGroup ( )

Creates a new RendererViewGroup.

◆ ~RendererViewGroup()

virtual CeresEngine::RendererViewGroup::~RendererViewGroup ( )
virtual

Destroys the RendererViewGroup and releases any renderer (and RenderAPI)-related resources.

Member Function Documentation

◆ getViews()

virtual Vector< RendererView * > CeresEngine::RendererViewGroup::getViews ( ) const
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.


The documentation for this class was generated from the following file: