Clutter Engine 0.0.1
Loading...
Searching...
No Matches
clt::IRenderer Class Referenceabstract

Interface for all renderer implementations. More...

#include <IRenderer.h>

Inheritance diagram for clt::IRenderer:
clt::RendererGL

Public Member Functions

 ~IRenderer ()=default
 Virtual destructor.
 
virtual void Initialize (CEngine *pEngine, Color backgroundColor)=0
 Initializes the renderer.
 
virtual void WireframeMode (bool wireframe)=0
 Enables or disables wireframe rendering mode.
 
virtual void ToggleWireframe ()=0
 Toggles the wireframe rendering mode.
 
virtual void BeginDraw ()=0
 Begins the drawing process for a frame.
 
virtual void Draw ()=0
 Executes the drawing commands for the current frame.
 
virtual void EndDraw ()=0
 Ends the drawing process for a frame.
 
virtual void Close ()=0
 Closes and cleans up the renderer.
 
virtual const RendererType GetType () const =0
 Gets the type of the renderer.
 
virtual const CEngineGetEngine () const =0
 Gets the engine associated with this renderer.
 

Protected Attributes

bool mWireframe
 Indicates if wireframe mode is enabled.
 
Color mBackgroundColor
 The background color used by the renderer.
 

Detailed Description

Interface for all renderer implementations.

Member Function Documentation

◆ BeginDraw()

virtual void clt::IRenderer::BeginDraw ( )
pure virtual

Begins the drawing process for a frame.

Implemented in clt::RendererGL.

◆ Close()

virtual void clt::IRenderer::Close ( )
pure virtual

Closes and cleans up the renderer.

Implemented in clt::RendererGL.

◆ Draw()

virtual void clt::IRenderer::Draw ( )
pure virtual

Executes the drawing commands for the current frame.

Implemented in clt::RendererGL.

◆ EndDraw()

virtual void clt::IRenderer::EndDraw ( )
pure virtual

Ends the drawing process for a frame.

Implemented in clt::RendererGL.

◆ GetEngine()

virtual const CEngine * clt::IRenderer::GetEngine ( ) const
pure virtual

Gets the engine associated with this renderer.

Returns
Pointer to the engine instance.

Implemented in clt::RendererGL.

◆ GetType()

virtual const RendererType clt::IRenderer::GetType ( ) const
pure virtual

Gets the type of the renderer.

Returns
The renderer type.

Implemented in clt::RendererGL.

◆ Initialize()

virtual void clt::IRenderer::Initialize ( CEngine * pEngine,
Color backgroundColor )
pure virtual

Initializes the renderer.

Parameters
pEnginePointer to the engine instance.
backgroundColorThe background color to use.

Implemented in clt::RendererGL.

◆ ToggleWireframe()

virtual void clt::IRenderer::ToggleWireframe ( )
pure virtual

Toggles the wireframe rendering mode.

Implemented in clt::RendererGL.

◆ WireframeMode()

virtual void clt::IRenderer::WireframeMode ( bool wireframe)
pure virtual

Enables or disables wireframe rendering mode.

Parameters
wireframeTrue to enable wireframe mode, false to disable.

Implemented in clt::RendererGL.


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