2D Engine v0.1.0
Loading...
Searching...
No Matches
RenderingSystem Class Reference

Rendering System. More...

#include <RenderingSystem.hpp>

Collaboration diagram for RenderingSystem:
Collaboration graph

Public Member Functions

 RenderingSystem (Scene *scene, Board *board)
 Initialize the Rendering System.
 
 ~RenderingSystem ()
 Destroy the Rendering System.
 
void Render ()
 Renders the ImGui Editor and the SDL scene to the ImGui Window as a texture.
 
SDL_Texture * GetWindowTexture ()
 Get an SDL Texture of the SDL Viewport.
 
void SDLRender (bool &showColliders) const
 Render the SDL scene to the renderer.
 
ImGuiLayerGetImGuiLayer () const
 Get the Im Gui Layer object.
 
SDLLayerGetSDLLayer () const
 Get the SDL Layer object.
 

Detailed Description

Rendering System.

Constructor & Destructor Documentation

◆ RenderingSystem()

RenderingSystem::RenderingSystem ( Scene * scene,
Board * board )
inline

Initialize the Rendering System.

Parameters
sceneCurrent scene
sdlLayerSDL Layer
boardGame board

◆ ~RenderingSystem()

RenderingSystem::~RenderingSystem ( )
inline

Destroy the Rendering System.

Member Function Documentation

◆ GetImGuiLayer()

ImGuiLayer * RenderingSystem::GetImGuiLayer ( ) const
inline

Get the Im Gui Layer object.

Returns
ImGuiLayer*

◆ GetSDLLayer()

SDLLayer * RenderingSystem::GetSDLLayer ( ) const
inline

Get the SDL Layer object.

Returns
SDL_Layer*

◆ GetWindowTexture()

SDL_Texture * RenderingSystem::GetWindowTexture ( )

Get an SDL Texture of the SDL Viewport.

Returns
SDL_Texture* The SDL Texture

◆ Render()

void RenderingSystem::Render ( )

Renders the ImGui Editor and the SDL scene to the ImGui Window as a texture.

◆ SDLRender()

void RenderingSystem::SDLRender ( bool & showColliders) const

Render the SDL scene to the renderer.

Parameters
showCollidersRender colliders to SDL

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