Hymn to Beauty
C++ 3D Engine
RenderManager Class Reference

Handles rendering the world. More...

#include <RenderManager.hpp>

Classes

struct  DebugConfiguration
 Configuration for visualizing debug information. More...
 

Public Member Functions

void Render (World &world, const DebugConfiguration &debugConfiguration, Entity *cameraEntity=nullptr)
 Render world containing entities. More...
 
Component::DirectionalLightCreateDirectionalLight ()
 Create directional light component. More...
 
const std::vector< Component::DirectionalLight * > & GetDirectionalLights () const
 Get all directional light components. More...
 
Component::CameraCreateCamera ()
 Create camera component. More...
 
const std::vector< Component::Camera * > & GetCameras () const
 Get all camera components. More...
 
Component::MaterialCreateMaterial ()
 Create material component. More...
 
const std::vector< Component::Material * > & GetMaterials () const
 Get all material components. More...
 
Component::MeshCreateMesh ()
 Create mesh component. More...
 
const std::vector< Component::Mesh * > & GetMeshes () const
 Get all mesh components. More...
 
Component::PointLightCreatePointLight ()
 Create point light component. More...
 
const std::vector< Component::PointLight * > & GetPointLights () const
 Get all point light components. More...
 
Component::SpotLightCreateSpotLight ()
 Create spot light component. More...
 
const std::vector< Component::SpotLight * > & GetSpotLights () const
 Get all spot light components. More...
 
Component::SpriteCreateSprite ()
 Create sprite component. More...
 
const std::vector< Component::Sprite * > & GetSprites () const
 Get all sprite components. More...
 
void ClearKilledComponents ()
 Remove all killed components. More...
 
Video::RendererGetRenderer ()
 Get the renderer. More...
 

Friends

class Hub
 

Detailed Description

Handles rendering the world.

Member Function Documentation

◆ ClearKilledComponents()

void RenderManager::ClearKilledComponents ( )

Remove all killed components.

◆ CreateCamera()

Component::Camera * RenderManager::CreateCamera ( )

Create camera component.

Returns
The created component.

◆ CreateDirectionalLight()

Component::DirectionalLight * RenderManager::CreateDirectionalLight ( )

Create directional light component.

Returns
The created component.

◆ CreateMaterial()

Component::Material * RenderManager::CreateMaterial ( )

Create material component.

Returns
The created component.

◆ CreateMesh()

Component::Mesh * RenderManager::CreateMesh ( )

Create mesh component.

Returns
The created component.

◆ CreatePointLight()

Component::PointLight * RenderManager::CreatePointLight ( )

Create point light component.

Returns
The created component.

◆ CreateSpotLight()

Component::SpotLight * RenderManager::CreateSpotLight ( )

Create spot light component.

Returns
The created component.

◆ CreateSprite()

Component::Sprite * RenderManager::CreateSprite ( )

Create sprite component.

Returns
The created component.

◆ GetCameras()

const std::vector< Component::Camera * > & RenderManager::GetCameras ( ) const

Get all camera components.

Returns
All camera components.

◆ GetDirectionalLights()

const std::vector< Component::DirectionalLight * > & RenderManager::GetDirectionalLights ( ) const

Get all directional light components.

Returns
All directional light components.

◆ GetMaterials()

const std::vector< Component::Material * > & RenderManager::GetMaterials ( ) const

Get all material components.

Returns
All material components.

◆ GetMeshes()

const std::vector< Component::Mesh * > & RenderManager::GetMeshes ( ) const

Get all mesh components.

Returns
All mesh components.

◆ GetPointLights()

const std::vector< Component::PointLight * > & RenderManager::GetPointLights ( ) const

Get all point light components.

Returns
All point light components.

◆ GetRenderer()

Video::Renderer * RenderManager::GetRenderer ( )

Get the renderer.

◆ GetSpotLights()

const std::vector< Component::SpotLight * > & RenderManager::GetSpotLights ( ) const

Get all spot light components.

Returns
All spot light components.

◆ GetSprites()

const std::vector< Component::Sprite * > & RenderManager::GetSprites ( ) const

Get all sprite components.

Returns
All sprite components.

◆ Render()

void RenderManager::Render ( World world,
const DebugConfiguration debugConfiguration,
Entity cameraEntity = nullptr 
)

Render world containing entities.

Parameters
worldContains a bunch of entities.
debugConfigurationConfiguration for visualizing debug information.
cameraEntityCamera through which to render (or first camera in the world if nullptr).

Friends And Related Function Documentation

◆ Hub

friend class Hub
friend

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