|
Muto 0.0.1
|
Represents a scene in the application and manages entities and their components. More...
#include <Scene.h>
Public Member Functions | |
| Entity | CreateEntity (const std::string &name, const std::string &uuid) |
| Entity | CreateEntity (const std::string &name=std::string()) |
| void | DestroyEntity (Entity entity) |
| Entity | GetPrimaryCameraEntity () |
| void | OnUpdateEditor (Timestep ts, EditorCamera &camera) |
| void | OnUpdateRuntime (Timestep ts) |
| void | OnViewportResize (uint32_t width, uint32_t height) |
| Scene () | |
| Scene (const std::string &name) | |
| ~Scene () | |
Private Attributes | |
| std::string | m_Name |
| entt::registry | m_Registry |
| uint32_t | m_ViewportHeight = 90 |
| uint32_t | m_ViewportWidth = 160 |
Friends | |
| class | Entity |
| class | SceneCamera |
| class | SceneHierarchyPanel |
| class | SceneSerializer |
Represents a scene in the application and manages entities and their components.
| Muto::Scene::Scene | ( | ) |
References m_Name.
| Muto::Scene::Scene | ( | const std::string & | name | ) |
References m_Name.
| Muto::Scene::~Scene | ( | ) |
|
inlineprivate |
| Entity Muto::Scene::GetPrimaryCameraEntity | ( | ) |
|
private |
|
private |
References m_ViewportHeight, and m_ViewportWidth.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void Muto::Scene::OnUpdateEditor | ( | Timestep | ts, |
| EditorCamera & | camera | ||
| ) |
References Muto::Renderer2D::BeginScene(), and Muto::Renderer2D::EndScene().
TODO: Move to Scene::OnScenePlay()
TODO: Move to Scene::OnScenePlay()
References Muto::Renderer2D::EndScene().
References m_ViewportHeight, and m_ViewportWidth.
|
friend |
|
friend |
|
friend |
|
private |
|
private |
Referenced by OnComponentAdded(), and OnViewportResize().
|
private |
Referenced by OnComponentAdded(), and OnViewportResize().