|
Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
|
#include <engine.hpp>
Public Member Functions | |
| eastl::weak_ptr< Window > | GetWindow () noexcept |
| This method allows you to get a weak pointer of the Window. This method will automatically create the engine for you based on the defined renderer type. More... | |
| template<typename WindowType > | |
| eastl::weak_ptr< WindowType > | GetWindow () |
| This method allows you to get a weak pointer of the Window based on the defined WindowType. More... | |
| eastl::weak_ptr< Window > | CreateAndReturnWindow (int width, int height, const char *title) noexcept |
| This method will initialize the window class for you, based on the defined renderer type. More... | |
| eastl::weak_ptr< InputManager > | GetInputManager () noexcept |
| This method allows you to get a weak pointer of the input manager. If it hasn't been defined yet, it'll be created for you. More... | |
| eastl::weak_ptr< Renderer > | GetRenderer () noexcept |
| This method allows you to get a weak pointer of the renderer. If it hasn't been defined yet, it'll be created for you based on the defined renderer type. More... | |
| template<typename RendererType > | |
| eastl::weak_ptr< RendererType > | GetRenderer () |
| This method allows you to get a weak pointer of the renderer based on the defined RendererType. If it hasn't been defined yet, it'll be created for you based on the defined renderer type. More... | |
| eastl::weak_ptr< Camera > | GetCamera () noexcept |
| This method allows you to get a weak pointer of the main camera object. If it hasn't been defined yet, it'll be created for you. More... | |
| eastl::weak_ptr< Time > | GetTime () noexcept |
| This method allows you to get a weak pointer of the time object. If it hasn't been defined yet, it'll be created for you. More... | |
| eastl::weak_ptr< EntitySystem > | GetEntitySystem () const noexcept |
| This method allows you to get a weak pointer of the entity system. If it hasn't been defined yet, it'll be created for you. More... | |
| eastl::weak_ptr< ResourceManager > | GetResourceManager () const noexcept |
| This method allows you to get a weak pointer of the resource manager. If it hasn't been defined yet, it'll be created for you. More... | |
| eastl::weak_ptr< CollisionSystem > | GetCollisionSystem () const noexcept |
| This method allows you to get a weak pointer of the collision system. If it hasn't been defined yet, it'll be created for you. More... | |
| eastl::weak_ptr< Random > | GetRandom () |
| this method allows you to get a weak pointer of the Random class object More... | |
| void | Update () noexcept |
| The general update method of the entire engine system. Call this from your main loop. More... | |
| void | Destroy () noexcept |
| This method destroys the entire engine for you. Call this method after your main loop is finished. More... | |
| void | SetIsPlaying (bool isPlaying) |
| This method allows you to pause or play the game based on the assigned value. More... | |
| bool | GetIsPlaying () |
| This method allows you to get the current status of the engine. More... | |
| ~Engine ()=default | |
Static Public Member Functions | |
| static eastl::weak_ptr< Engine > | InitializeEngine (bool isPlaying=true) noexcept |
| This method allows you to initialize the Engine. More... | |
| static eastl::weak_ptr< Engine > | GetEngine () noexcept |
| This method allows you to get the instance of the Engine. This method will automatically initialize the Engine if it hasn't been initialized yet. More... | |
Definition at line 41 of file engine.hpp.
|
default |
|
noexcept |
This method will initialize the window class for you, based on the defined renderer type.
| width | The width of the window. |
| height | The height of the window. |
| title | The title of the window. |
Definition at line 28 of file engine.cpp.
|
noexcept |
This method destroys the entire engine for you. Call this method after your main loop is finished.
Definition at line 162 of file engine.cpp.
|
noexcept |
This method allows you to get a weak pointer of the main camera object. If it hasn't been defined yet, it'll be created for you.
Definition at line 69 of file engine.cpp.
|
noexcept |
This method allows you to get a weak pointer of the collision system. If it hasn't been defined yet, it'll be created for you.
Definition at line 103 of file engine.cpp.
|
staticnoexcept |
This method allows you to get the instance of the Engine. This method will automatically initialize the Engine if it hasn't been initialized yet.
Definition at line 130 of file engine.cpp.
|
noexcept |
This method allows you to get a weak pointer of the entity system. If it hasn't been defined yet, it'll be created for you.
Definition at line 89 of file engine.cpp.
|
noexcept |
This method allows you to get a weak pointer of the input manager. If it hasn't been defined yet, it'll be created for you.
Definition at line 40 of file engine.cpp.
| bool Engine::Engine::GetIsPlaying | ( | ) |
This method allows you to get the current status of the engine.
Definition at line 184 of file engine.cpp.
| eastl::weak_ptr< Random > Engine::Engine::GetRandom | ( | ) |
this method allows you to get a weak pointer of the Random class object
Definition at line 47 of file engine.cpp.
|
noexcept |
This method allows you to get a weak pointer of the renderer. If it hasn't been defined yet, it'll be created for you based on the defined renderer type.
Definition at line 54 of file engine.cpp.
| eastl::weak_ptr< RendererType > Engine::Engine::GetRenderer | ( | ) |
This method allows you to get a weak pointer of the renderer based on the defined RendererType. If it hasn't been defined yet, it'll be created for you based on the defined renderer type.
Definition at line 212 of file engine.hpp.
|
noexcept |
This method allows you to get a weak pointer of the resource manager. If it hasn't been defined yet, it'll be created for you.
Definition at line 96 of file engine.cpp.
|
noexcept |
This method allows you to get a weak pointer of the time object. If it hasn't been defined yet, it'll be created for you.
Definition at line 82 of file engine.cpp.
|
noexcept |
This method allows you to get a weak pointer of the Window. This method will automatically create the engine for you based on the defined renderer type.
Definition at line 23 of file engine.cpp.
| eastl::weak_ptr< WindowType > Engine::Engine::GetWindow | ( | ) |
This method allows you to get a weak pointer of the Window based on the defined WindowType.
Definition at line 201 of file engine.hpp.
|
staticnoexcept |
This method allows you to initialize the Engine.
| isPlaying | This value will defined if the engine should start in play mode. True by default |
Definition at line 110 of file engine.cpp.
| void Engine::Engine::SetIsPlaying | ( | bool | isPlaying | ) |
This method allows you to pause or play the game based on the assigned value.
| isPlaying | This wil change the engine to pause or play mode based on your value. |
Definition at line 179 of file engine.cpp.
|
noexcept |
The general update method of the entire engine system. Call this from your main loop.
Definition at line 137 of file engine.cpp.
1.8.11