CSEngine
|
#include <DeferredRenderGroup.h>
Public Member Functions | |
DeferredRenderGroup (const RenderMgr &renderMgr) | |
void | RegisterObject (SIRender *object) override |
void | RemoveObjects (SIRender *object) override |
void | RenderAll (const CameraBase &camera) const override |
void | RenderGbuffer (const CameraBase &camera, const SGBuffer &gbuffer, const SShaderGroup &shaders) const |
void | SetViewport () |
void | Exterminate () override |
Public Member Functions inherited from CSE::SRenderGroup | |
SRenderGroup (const RenderMgr &renderMgr) | |
Additional Inherited Members | |
Static Protected Member Functions inherited from CSE::SRenderGroup | |
static void | BindSourceBuffer (const SFrameBuffer &buffer, const GLProgramHandle &handle, int layout) |
Protected Attributes inherited from CSE::SRenderGroup | |
const RenderMgr * | m_renderMgr |
This class is responsible for deferred rendering of G-Buffer objects.
Definition at line 15 of file DeferredRenderGroup.h.
|
explicit |
Constructor for DeferredRenderGroup
renderMgr | Reference to the RenderMgr object. |
Definition at line 15 of file DeferredRenderGroup.cpp.
References CSE::RenderMgr::GetHeight(), and CSE::RenderMgr::GetWidth().
|
overridevirtual |
Free all allocated resources.
Implements CSE::SRenderGroup.
Definition at line 136 of file DeferredRenderGroup.cpp.
|
overridevirtual |
Register an object to the render group.
object | A pointer to the object to be registered. |
Implements CSE::SRenderGroup.
Definition at line 24 of file DeferredRenderGroup.cpp.
|
overridevirtual |
Remove an object from the render group.
object | A pointer to the object to be removed. |
Implements CSE::SRenderGroup.
Definition at line 40 of file DeferredRenderGroup.cpp.
|
overridevirtual |
Deferred rendering for each G-Buffer object.
camera | Structure containing information values of the camera to be drawn. |
Implements CSE::SRenderGroup.
Definition at line 51 of file DeferredRenderGroup.cpp.
References RenderGbuffer().
void DeferredRenderGroup::RenderGbuffer | ( | const CameraBase & | camera, |
const SGBuffer & | gbuffer, | ||
const SShaderGroup & | shaders | ||
) | const |
Deferred rendering for each G-Buffer object.
camera | Structure containing information values of the camera to be drawn. |
gbuffer | G-Buffer object to be drawn. |
======================
======================
======================
Definition at line 60 of file DeferredRenderGroup.cpp.
References CSE::LightMgr::AttachLightMapToShader(), CSE::LightMgr::AttachLightToShader(), CSE::ShaderUtil::BindCameraToShader(), CSE::SRenderGroup::BindSourceBuffer(), CSE::LightMgr::GetLightMapCount(), and CSE::LightMgr::GetShadowCount().
Referenced by RenderAll().
void DeferredRenderGroup::SetViewport | ( | ) |
Set the viewport size.
Definition at line 129 of file DeferredRenderGroup.cpp.