#include <CameraManager.h>
Definition at line 10 of file CameraManager.h.
◆ GetCurrent()
| Camera * Elevate::CameraManager::GetCurrent |
( |
| ) |
|
|
static |
Definition at line 17 of file CameraManager.cpp.
18 {
19#ifdef EE_EDITOR_BUILD
21 {
22 return GetEditor();
23 }
24#endif
25
27 if (!runtime)
28 {
29 EE_CORE_ASSERT(false, "ERROR : There is no active camera! - CameraManager::GetCurrent()");
30 }
31
32 return runtime;
33 }
static const GameContextState & GetGameState()
static Camera * GetRuntime()
◆ GetRuntime()
| Camera * Elevate::CameraManager::GetRuntime |
( |
| ) |
|
|
static |
Definition at line 42 of file CameraManager.cpp.
43 {
44 if (s_currentCamera)
45 {
46 return s_currentCamera;
47 }
48 return nullptr;
49 }
◆ NotifyDestruction()
| void Elevate::CameraManager::NotifyDestruction |
( |
Camera * |
camera | ) |
|
|
static |
Definition at line 56 of file CameraManager.cpp.
57 {
58 if (s_currentCamera && camera == s_currentCamera)
59 {
60 s_currentCamera = nullptr;
61 }
62 }
◆ SetCurrent()
| void Elevate::CameraManager::SetCurrent |
( |
Camera * |
current | ) |
|
|
static |
The documentation for this class was generated from the following files: