|
Hymn to Beauty
C++ 3D Engine
|
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::DirectionalLight * | CreateDirectionalLight () |
| Create directional light component. More... | |
| const std::vector< Component::DirectionalLight * > & | GetDirectionalLights () const |
| Get all directional light components. More... | |
| Component::Camera * | CreateCamera () |
| Create camera component. More... | |
| const std::vector< Component::Camera * > & | GetCameras () const |
| Get all camera components. More... | |
| Component::Material * | CreateMaterial () |
| Create material component. More... | |
| const std::vector< Component::Material * > & | GetMaterials () const |
| Get all material components. More... | |
| Component::Mesh * | CreateMesh () |
| Create mesh component. More... | |
| const std::vector< Component::Mesh * > & | GetMeshes () const |
| Get all mesh components. More... | |
| Component::PointLight * | CreatePointLight () |
| Create point light component. More... | |
| const std::vector< Component::PointLight * > & | GetPointLights () const |
| Get all point light components. More... | |
| Component::SpotLight * | CreateSpotLight () |
| Create spot light component. More... | |
| const std::vector< Component::SpotLight * > & | GetSpotLights () const |
| Get all spot light components. More... | |
| Component::Sprite * | CreateSprite () |
| Create sprite component. More... | |
| const std::vector< Component::Sprite * > & | GetSprites () const |
| Get all sprite components. More... | |
| void | ClearKilledComponents () |
| Remove all killed components. More... | |
| Video::Renderer * | GetRenderer () |
| Get the renderer. More... | |
Friends | |
| class | Hub |
Handles rendering the world.
| void RenderManager::ClearKilledComponents | ( | ) |
Remove all killed components.
| Component::Camera * RenderManager::CreateCamera | ( | ) |
Create camera component.
| Component::DirectionalLight * RenderManager::CreateDirectionalLight | ( | ) |
Create directional light component.
| Component::Material * RenderManager::CreateMaterial | ( | ) |
Create material component.
| Component::Mesh * RenderManager::CreateMesh | ( | ) |
Create mesh component.
| Component::PointLight * RenderManager::CreatePointLight | ( | ) |
Create point light component.
| Component::SpotLight * RenderManager::CreateSpotLight | ( | ) |
Create spot light component.
| Component::Sprite * RenderManager::CreateSprite | ( | ) |
Create sprite component.
| const std::vector< Component::Camera * > & RenderManager::GetCameras | ( | ) | const |
Get all camera components.
| const std::vector< Component::DirectionalLight * > & RenderManager::GetDirectionalLights | ( | ) | const |
Get all directional light components.
| const std::vector< Component::Material * > & RenderManager::GetMaterials | ( | ) | const |
Get all material components.
| const std::vector< Component::Mesh * > & RenderManager::GetMeshes | ( | ) | const |
Get all mesh components.
| const std::vector< Component::PointLight * > & RenderManager::GetPointLights | ( | ) | const |
Get all point light components.
| Video::Renderer * RenderManager::GetRenderer | ( | ) |
Get the renderer.
| const std::vector< Component::SpotLight * > & RenderManager::GetSpotLights | ( | ) | const |
Get all spot light components.
| const std::vector< Component::Sprite * > & RenderManager::GetSprites | ( | ) | const |
Get all sprite components.
| void RenderManager::Render | ( | World & | world, |
| const DebugConfiguration & | debugConfiguration, | ||
| Entity * | cameraEntity = nullptr |
||
| ) |
Render world containing entities.
| world | Contains a bunch of entities. |
| debugConfiguration | Configuration for visualizing debug information. |
| cameraEntity | Camera through which to render (or first camera in the world if nullptr). |
|
friend |