53 void AddCamera(std::shared_ptr<Camera> camera);
61 void SetClearColor(
const glm::vec4& clearColor) { m_ClearColor = clearColor; }
91 std::shared_ptr<VertexArray> GetRenderableVertexArray()
const;
98 std::shared_ptr<Camera> GetSceneCamera()
const;
112 inline const std::vector<std::shared_ptr<VertexArray>>&
GetAllVertexArrays()
const {
return m_VertexArrays; }
119 inline const std::vector<std::shared_ptr<Camera>>&
GetAllCameras()
const {
return m_Cameras; }
136 std::vector<std::shared_ptr<VertexArray>> m_VertexArrays;
137 std::vector<std::shared_ptr<Camera>> m_Cameras;
139 glm::vec4 m_ClearColor;
142 void* m_WindowToRenderWithin;
This file contains Camera class.
#define KARMA_API
Defining Karma's API macro for storage class information.
Definition Core.h:41
This file contains the VertexArray class.
void SetRenderWindow(void *window)
Set the Window in which the Scene is to be rendered.
Definition Scene.h:74
void SetWindowToRenderWithinResize(bool bStatus)
Sets the status of the m_WindowResize true if resize is done so that necessary reset and reallocation...
Definition Scene.h:83
void AddCamera(std::shared_ptr< Camera > camera)
Add Camera.
Definition Scene.cpp:31
void AddVertexArray(std::shared_ptr< VertexArray > vertexArray)
Add a VertexArray (Mesh + Material) to the list of renderable VertexArrays.
Definition Scene.cpp:26
void SetClearColor(const glm::vec4 &clearColor)
Set the m_ClearColor variable.
Definition Scene.h:61
const std::vector< std::shared_ptr< Camera > > & GetAllCameras() const
Get the list of all Cameras.
Definition Scene.h:119
void * GetRenderingWindow() const
Getter for the window in which the scene is rendered.
Definition Scene.h:126
bool GetWindowToRenderWithinResizeStatus() const
Getter for the status of wether the window resize is to be handled.
Definition Scene.h:133
Scene()
A constructor.
Definition Scene.cpp:5
const glm::vec4 & GetClearColor() const
Getter for the m_ClearColor.
Definition Scene.h:105
const std::vector< std::shared_ptr< VertexArray > > & GetAllVertexArrays() const
Get the list of VertexArrays.
Definition Scene.h:112