Class for organizing and containing Scene relevant data.
More...
#include <Scene.h>
Class for organizing and containing Scene relevant data.
◆ Scene()
A constructor.
- Since
- Karma 1.0.0
◆ ~Scene()
Destructor.
- Since
- Karma 1.0.0
◆ AddCamera()
void Karma::Scene::AddCamera |
( |
std::shared_ptr< Camera > | camera | ) |
|
Add Camera.
- Parameters
-
- Since
- Karma 1.0.0
◆ AddVertexArray()
void Karma::Scene::AddVertexArray |
( |
std::shared_ptr< VertexArray > | vertexArray | ) |
|
◆ GetAllCameras()
const std::vector< std::shared_ptr< Camera > > & Karma::Scene::GetAllCameras |
( |
| ) |
const |
|
inline |
Get the list of all Cameras.
- Since
- Karma 1.0.0
◆ GetAllVertexArrays()
const std::vector< std::shared_ptr< VertexArray > > & Karma::Scene::GetAllVertexArrays |
( |
| ) |
const |
|
inline |
Get the list of VertexArrays.
- Since
- Karma 1.0.0
◆ GetClearColor()
const glm::vec4 & Karma::Scene::GetClearColor |
( |
| ) |
const |
|
inline |
Getter for the m_ClearColor.
- Since
- Karma 1.0.0
◆ GetRenderableVertexArray()
std::shared_ptr< VertexArray > Karma::Scene::GetRenderableVertexArray |
( |
| ) |
const |
◆ GetRenderingWindow()
void * Karma::Scene::GetRenderingWindow |
( |
| ) |
const |
|
inline |
Getter for the window in which the scene is rendered.
- Since
- Karma 1.0.0
◆ GetSceneCamera()
std::shared_ptr< Camera > Karma::Scene::GetSceneCamera |
( |
| ) |
const |
Getter for the Camera being used for the scene.
- Since
- Karma 1.0.0
◆ GetWindowToRenderWithinResizeStatus()
bool Karma::Scene::GetWindowToRenderWithinResizeStatus |
( |
| ) |
const |
|
inline |
Getter for the status of wether the window resize is to be handled.
- Since
- Karma 1.0.0
◆ SetClearColor()
void Karma::Scene::SetClearColor |
( |
const glm::vec4 & | clearColor | ) |
|
|
inline |
Set the m_ClearColor variable.
- Parameters
-
clearColor | This color to be set |
- Since
- Karma 1.0.0
◆ SetRenderWindow()
void Karma::Scene::SetRenderWindow |
( |
void * | window | ) |
|
|
inline |
Set the Window in which the Scene is to be rendered.
Could be a KGGuiWindow if rendering in the Editor. For standalone game, maybe Window can be used.
- Parameters
-
window | The window for rendering |
- See also
- KarmaGuiMesa::Draw3DModelExhibitorMesa
- Since
- Karma 1.0.0
◆ SetWindowToRenderWithinResize()
void Karma::Scene::SetWindowToRenderWithinResize |
( |
bool | bStatus | ) |
|
|
inline |
Sets the status of the m_WindowResize true if resize is done so that necessary reset and reallocation of resources can be done.
- Parameters
-
bStatus | True if resize is done and rendering resources are to be reallocated |
- Since
- Karma 1.0.0
The documentation for this class was generated from the following files:
- Karma/src/Karma/Renderer/Scene.h
- Karma/src/Karma/Renderer/Scene.cpp