Finality Engine
Loading...
Searching...
No Matches
FINALITY::Renderer Class Reference

Collects scene render packets through the engine rendering facade. More...

#include <Renderer.h>

Public Member Functions

 Renderer ()=default
 ~Renderer ()=default
 Renderer (const Renderer &)=delete
Renderer & operator= (const Renderer &)=delete

Static Public Member Functions

static void Initialize (RenderDevice *device)
 Connects the rendering facade to a graphics backend.
static void Shutdown ()
static void BeginScene ()
static void EndScene ()
static void PushEntity (Entity entity)
static void PushEntity (Entity entity, const glm::mat4 &worldTransform)
static void ConfigureLODGroups (const Scene &scene)
static RenderDevice * GetDevice ()
static void SetActiveCamera (Camera *camera)
static Camera * GetActiveCamera ()
static void SetPostProcessPipeline (std::shared_ptr< Pipeline > pipeline)
static std::shared_ptr< Pipeline > CreatePostProcessPipeline (const PipelineConfig &config)
static uint32_t GetSubmittedCount ()
static uint32_t GetCulledCount ()
static const std::vector< RenderPacket > & GetRenderQueue ()
static void SetDirectRenderingEnabled (bool enabled)
static bool IsDirectRenderingEnabled ()
static void SetFrustumCullingEnabled (bool enabled)

Static Protected Member Functions

static bool TryGetCullingFrustum (const Frustum *&outFrustum)
static bool IsFrustumCullingEnabled ()

Detailed Description

Collects scene render packets through the engine rendering facade.

Renderer connects scene entities to a RenderDevice and maintains the render queue and active camera. Per-view visibility and backend recording are separate from authored scene components.

Usage
Initialize with a live device, begin scene submission, push entities and end submission. Keep device lifetime longer than renderer use and release renderer resources before device shutdown.

Definition at line 34 of file Renderer.h.

Constructor & Destructor Documentation

◆ Renderer() [1/2]

FINALITY::Renderer::Renderer ( )
default

◆ ~Renderer()

FINALITY::Renderer::~Renderer ( )
default

◆ Renderer() [2/2]

FINALITY::Renderer::Renderer ( const Renderer & )
delete

Member Function Documentation

◆ operator=()

Renderer & FINALITY::Renderer::operator= ( const Renderer & )
delete

◆ Initialize()

void FINALITY::Renderer::Initialize ( RenderDevice * device)
static

Connects the rendering facade to a graphics backend.

Parameters
deviceLive graphics device that outlives renderer use. The pointer is non-owning. Shut down the renderer before destroying its device.

◆ Shutdown()

void FINALITY::Renderer::Shutdown ( )
static

◆ BeginScene()

void FINALITY::Renderer::BeginScene ( )
static

◆ EndScene()

void FINALITY::Renderer::EndScene ( )
static

◆ PushEntity() [1/2]

void FINALITY::Renderer::PushEntity ( Entity entity)
static

◆ PushEntity() [2/2]

void FINALITY::Renderer::PushEntity ( Entity entity,
const glm::mat4 & worldTransform )
static

◆ ConfigureLODGroups()

void FINALITY::Renderer::ConfigureLODGroups ( const Scene & scene)
static

◆ GetDevice()

RenderDevice * FINALITY::Renderer::GetDevice ( )
inlinestatic

Definition at line 57 of file Renderer.h.

◆ SetActiveCamera()

void FINALITY::Renderer::SetActiveCamera ( Camera * camera)
inlinestatic

Definition at line 59 of file Renderer.h.

◆ GetActiveCamera()

Camera * FINALITY::Renderer::GetActiveCamera ( )
inlinestatic

Definition at line 60 of file Renderer.h.

◆ SetPostProcessPipeline()

void FINALITY::Renderer::SetPostProcessPipeline ( std::shared_ptr< Pipeline > pipeline)
static

◆ CreatePostProcessPipeline()

std::shared_ptr< Pipeline > FINALITY::Renderer::CreatePostProcessPipeline ( const PipelineConfig & config)
static

◆ GetSubmittedCount()

uint32_t FINALITY::Renderer::GetSubmittedCount ( )
inlinestatic

Definition at line 65 of file Renderer.h.

◆ GetCulledCount()

uint32_t FINALITY::Renderer::GetCulledCount ( )
inlinestatic

Definition at line 66 of file Renderer.h.

◆ GetRenderQueue()

const std::vector< RenderPacket > & FINALITY::Renderer::GetRenderQueue ( )
inlinestatic

Definition at line 67 of file Renderer.h.

◆ SetDirectRenderingEnabled()

void FINALITY::Renderer::SetDirectRenderingEnabled ( bool enabled)
inlinestatic

Definition at line 69 of file Renderer.h.

◆ IsDirectRenderingEnabled()

bool FINALITY::Renderer::IsDirectRenderingEnabled ( )
inlinestatic

Definition at line 70 of file Renderer.h.

◆ SetFrustumCullingEnabled()

void FINALITY::Renderer::SetFrustumCullingEnabled ( bool enabled)
inlinestatic

Definition at line 72 of file Renderer.h.

◆ TryGetCullingFrustum()

bool FINALITY::Renderer::TryGetCullingFrustum ( const Frustum *& outFrustum)
staticprotected

◆ IsFrustumCullingEnabled()

bool FINALITY::Renderer::IsFrustumCullingEnabled ( )
inlinestaticprotected

Definition at line 88 of file Renderer.h.


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