Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvGame::Core::GameRenderer Class Reference

#include <GameRenderer.h>

Public Member Functions

 GameRenderer (Context &p_context)
 
void RenderScene ()
 
void UpdateEngineUBO (OvCore::ECS::Components::CCamera &p_mainCamera)
 
void UpdateLights (OvCore::SceneSystem::Scene &p_scene)
 
void UpdateLightsInFrustum (OvCore::SceneSystem::Scene &p_scene, const OvRendering::Data::Frustum &p_frustum)
 

Detailed Description

Handle the rendering of the game scene

Constructor & Destructor Documentation

◆ GameRenderer()

OvGame::Core::GameRenderer::GameRenderer ( Context p_context)

Create the EditorRenderer

Parameters
p_context

Member Function Documentation

◆ RenderScene()

void OvGame::Core::GameRenderer::RenderScene ( )

Render the scene

◆ UpdateEngineUBO()

void OvGame::Core::GameRenderer::UpdateEngineUBO ( OvCore::ECS::Components::CCamera p_mainCamera)

Update the engine UBO

Parameters
p_mainCamera

◆ UpdateLights()

void OvGame::Core::GameRenderer::UpdateLights ( OvCore::SceneSystem::Scene p_scene)

Update the light SSBO with the current scene

Parameters
p_scene

◆ UpdateLightsInFrustum()

void OvGame::Core::GameRenderer::UpdateLightsInFrustum ( OvCore::SceneSystem::Scene p_scene,
const OvRendering::Data::Frustum p_frustum 
)

Update the light SSBO with the current scene (Lights outside of the given frustum are culled)

Parameters
p_scene

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