#include <EditorGameInstance.h>
|
virtual void | onGameStarted () override |
|
virtual void | onBeforeNewFrame (float timeSincePrevCallInSec) override |
|
Timer * | createTimer (const std::string &sTimerName) |
|
void | stopAndDisableCreatedTimers () |
|
virtual void | onGameStarted () |
|
virtual void | onBeforeNewFrame (float timeSincePrevCallInSec) |
|
virtual void | onKeyboardInput (KeyboardKey key, KeyboardModifiers modifiers, bool bIsPressedDown) |
|
virtual void | onMouseInput (MouseButton button, KeyboardModifiers modifiers, bool bIsPressedDown) |
|
virtual void | onMouseMove (double xOffset, double yOffset) |
|
virtual void | onMouseScrollMove (int iOffset) |
|
virtual void | onWindowFocusChanged (bool bIsFocused) |
|
virtual void | onFramebufferSizeChanged (int iWidth, int iHeight) |
|
virtual void | onWindowClose () |
|
std::pair< std::recursive_mutex, std::unordered_map< unsigned int, std::function< void(KeyboardModifiers, bool)> > > * | getActionEventBindings () |
|
std::pair< std::recursive_mutex, std::unordered_map< unsigned int, std::function< void(KeyboardModifiers, float)> > > * | getAxisEventBindings () |
|
◆ EditorGameInstance()
Constructor.
- Parameters
-
pWindow | Window that owns this game instance. |
pGameManager | GameManager that owns this game instance. |
pInputManager | Input manager of the owner Game object. |
◆ getEditorCamera()
sgc::GcPtr< EditorCameraNode > ne::EditorGameInstance::getEditorCamera |
( |
| ) |
const |
Returns camera that's used for editor's viewport.
- Returns
- Camera node.
◆ getEditorWindowTitle()
const char * ne::EditorGameInstance::getEditorWindowTitle |
( |
| ) |
|
|
static |
Returns title of the editor's window.
- Returns
- Window title.
◆ onBeforeNewFrame()
void ne::EditorGameInstance::onBeforeNewFrame |
( |
float |
timeSincePrevCallInSec | ) |
|
|
overrideprotectedvirtual |
Called before a new frame is rendered.
- Parameters
-
timeSincePrevCallInSec | Time in seconds that has passed since the last call to this function. |
Reimplemented from ne::GameInstance.
◆ onGameStarted()
void ne::EditorGameInstance::onGameStarted |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ spawnEditorNodesForNewWorld()
void ne::EditorGameInstance::spawnEditorNodesForNewWorld |
( |
| ) |
|
|
private |
Called after a new world was created to create editor-specific nodes such as camera and etc.
◆ gcPointers
All GC pointer that the editor holds.
◆ pEditorWindowTitle
constexpr auto ne::EditorGameInstance::pEditorWindowTitle = "Nameless Editor" |
|
staticconstexprprivate |
Title of the editor's window.
The documentation for this class was generated from the following files: