Service responsible for rendering game objects to the window. This service functions as a manager for the Renderer, and also as a face to work with the game window via a window property.
More...
#include <renderingService.h>
Service responsible for rendering game objects to the window. This service functions as a manager for the Renderer, and also as a face to work with the game window via a window property.
◆ RenderingService() [1/2]
| RenderingService::RenderingService |
( |
| ) |
|
|
explicit |
◆ RenderingService() [2/2]
| RenderingService::RenderingService |
( |
Renderer * |
renderer | ) |
|
|
explicit |
◆ ~RenderingService()
| RenderingService::~RenderingService |
( |
| ) |
|
|
overridedefault |
◆ draw()
| void RenderingService::draw |
( |
std::map< int, std::multimap< int, std::reference_wrapper< Renderable > > > & |
objects, |
|
|
Scene & |
scene |
|
) |
| |
Draws the provided game objects to the window using the renderer. Delegates the drawing operation to the Renderer instance.
- Parameters
-
| objects | A vector of references to GameObject instances to be drawn. |
| scene | The current scene context for rendering. |
◆ rendering_strategy_factory()
◆ vsync() [1/2]
| bool RenderingService::vsync |
( |
| ) |
const |
Checks if vertical synchronization (VSync).
- Returns
- true if VSync is enabled, false otherwise.
◆ vsync() [2/2]
| void RenderingService::vsync |
( |
bool |
enabled | ) |
|
Toggles vertical synchronization (VSync) which limits fps to the monitor's refresh rate.
◆ window()
| Window & RenderingService::window |
( |
| ) |
|
Provides access to the game window.
- Returns
- A reference to the Window instance managed by the Renderer.
◆ AssetService
The documentation for this class was generated from the following file: