CSEngine
|
Class for managing rendering operations. More...
#include <RenderMgr.h>
Public Member Functions | |
RenderMgr () | |
Constructor for RenderMgr. | |
void | Init () override |
Initialization of resources required for rendering. | |
void | SetViewport () |
Modify the framebuffer to fit the modified screen size. | |
void | Render () const override |
Rendering all stuffs. | |
unsigned int * | GetWidth () const |
Get the width of the screen. | |
unsigned int * | GetHeight () const |
Get the height of the screen. | |
Public Member Functions inherited from CSE::RenderContainer | |
void | Register (SIRender *object, RenderGroupMode groupMode) |
void | Remove (SIRender *object, RenderGroupMode groupFlag) |
Public Member Functions inherited from CSE::CoreBufferContainer | |
SFrameBuffer * | GetMainBuffer () const |
Public Member Functions inherited from CSE::CoreBase | |
virtual void | Update (float elapsedTime) |
Protected Member Functions | |
void | Exterminate () override |
Destroy all resources used for rendering. | |
Protected Member Functions inherited from CSE::CoreBufferContainer | |
void | InitBuffers (int width, int height) |
void | ResizeBuffers (int width, int height) |
Additional Inherited Members | |
Public Types inherited from CSE::RenderContainer | |
enum | RenderGroupMode { FORWARD = 0 , DEFERRED = 1 , DEPTH_ONLY = 2 } |
Protected Attributes inherited from CSE::RenderContainer | |
SRenderGroup * | m_forwardRenderGroup = nullptr |
SRenderGroup * | m_deferredRenderGroup = nullptr |
SRenderGroup * | m_depthOnlyRenderGroup = nullptr |
unsigned int * | m_width = nullptr |
unsigned int * | m_height = nullptr |
Class for managing rendering operations.
This class is responsible for managing all elements involved in the rendering operation, including cameras, buffers, etc.
Definition at line 21 of file RenderMgr.h.
|
override |
Definition at line 23 of file RenderMgr.cpp.
|
overrideprotectedvirtual |
Destroy all resources used for rendering.
Reimplemented from CSE::RenderContainer.
Definition at line 96 of file RenderMgr.cpp.
|
inline |
Get the height of the screen.
Definition at line 59 of file RenderMgr.h.
Referenced by CSE::DeferredRenderGroup::DeferredRenderGroup().
|
inline |
Get the width of the screen.
Definition at line 50 of file RenderMgr.h.
Referenced by CSE::DeferredRenderGroup::DeferredRenderGroup().
|
overridevirtual |
Initialization of resources required for rendering.
Implements CSE::CoreBase.
Definition at line 27 of file RenderMgr.cpp.
|
overridevirtual |
Rendering all stuffs.
Implements CSE::RenderCoreBase.
Definition at line 47 of file RenderMgr.cpp.
void RenderMgr::SetViewport | ( | ) |
Modify the framebuffer to fit the modified screen size.
Definition at line 41 of file RenderMgr.cpp.
References SetViewport().
Referenced by SetViewport().