Interface for all renderer implementations.
More...
#include <IRenderer.h>
|
|
| ~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 CEngine * | GetEngine () const =0 |
| | Gets the engine associated with this renderer.
|
| |
|
|
bool | mWireframe |
| | Indicates if wireframe mode is enabled.
|
| |
|
Color | mBackgroundColor |
| | The background color used by the renderer.
|
| |
Interface for all renderer implementations.
◆ BeginDraw()
| virtual void clt::IRenderer::BeginDraw |
( |
| ) |
|
|
pure virtual |
◆ Close()
| virtual void clt::IRenderer::Close |
( |
| ) |
|
|
pure virtual |
◆ 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 |
◆ 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
-
| pEngine | Pointer to the engine instance. |
| backgroundColor | The background color to use. |
Implemented in clt::RendererGL.
◆ ToggleWireframe()
| virtual void clt::IRenderer::ToggleWireframe |
( |
| ) |
|
|
pure virtual |
◆ WireframeMode()
| virtual void clt::IRenderer::WireframeMode |
( |
bool | wireframe | ) |
|
|
pure virtual |
Enables or disables wireframe rendering mode.
- Parameters
-
| wireframe | True to enable wireframe mode, false to disable. |
Implemented in clt::RendererGL.
The documentation for this class was generated from the following file:
- D:/DEV JEUX/2025/CPP/Opengl/ClutterEngineOpenGL/ClutterEngine/Engine/Graphics/IRenderer.h