|
Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine. GitHub | Vesper Updates | Creator |
#include <Scene.h>
Public Member Functions | |
| Scene () | |
| Scene (const std::string &name) | |
| ~Scene () | |
| Entity | CreateEntity (const std::string &name=std::string()) |
| Entity | CreateEntity (const std::string &name, const std::string &uuid) |
| void | DestroyEntity (Entity entity) |
| void | OnUpdateRuntime (Timestep ts) |
| void | OnUpdateEditor (Timestep ts, EditorCamera &camera) |
| void | OnViewportResize (uint32_t width, uint32_t height) |
| Entity | GetPrimaryCameraEntity () |
Private Member Functions | |
| template<typename T> | |
| void | OnComponentAdded (Entity entity, T &component) |
| void | SetName (const std::string &name) |
| const std::string & | GetName () const |
| template<> | |
| void | OnComponentAdded (Entity entity, UUIDComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, NameComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, TransformComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, CameraComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, SpriteRendererComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, SubTextureComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, TextureAnimationComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, NativeScriptComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, UUIDComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, NameComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, TransformComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, CameraComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, SpriteRendererComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, SubTextureComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, TextureAnimationComponent &component) |
| template<> | |
| void | OnComponentAdded (Entity entity, NativeScriptComponent &component) |
Private Attributes | |
| std::string | m_Name |
| entt::registry | m_Registry |
| uint32_t | m_ViewportWidth = 160 |
| uint32_t | m_ViewportHeight = 90 |
Friends | |
| class | Entity |
| class | SceneSerializer |
| class | SceneHierarchyPanel |
| Vesper::Scene::Scene | ( | ) |
| Vesper::Scene::Scene | ( | const std::string & | name | ) |
| Vesper::Scene::~Scene | ( | ) |
| Entity Vesper::Scene::CreateEntity | ( | const std::string & | name, |
| const std::string & | uuid ) |
| Entity Vesper::Scene::CreateEntity | ( | const std::string & | name = std::string() | ) |
| void Vesper::Scene::DestroyEntity | ( | Entity | entity | ) |
|
inlineprivate |
| Entity Vesper::Scene::GetPrimaryCameraEntity | ( | ) |
|
private |
References m_ViewportHeight, and m_ViewportWidth.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void Vesper::Scene::OnUpdateEditor | ( | Timestep | ts, |
| EditorCamera & | camera ) |
References Vesper::Renderer2D::BeginScene(), and Vesper::Renderer2D::EndScene().
| void Vesper::Scene::OnUpdateRuntime | ( | Timestep | ts | ) |
TODO: Move to Scene::OnScenePlay()
References Vesper::Renderer2D::EndScene().
| void Vesper::Scene::OnViewportResize | ( | uint32_t | width, |
| uint32_t | height ) |
References m_ViewportHeight, and m_ViewportWidth.
|
inlineprivate |
TODO: friend class SceneCamera; TODO: friend class SceneRenderer;
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |
Referenced by OnComponentAdded(), and OnViewportResize().
|
private |
Referenced by OnComponentAdded(), and OnViewportResize().