MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetGameWindow

Method GetGameWindow

Source/Editor/Managed/ManagedEditor.cpp:452–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452Window* ManagedEditor::GetGameWindow(bool forceGet)
453{
454 if (HasManagedInstance())
455 {
456 if (Internal_GetGameWinPtr == nullptr)
457 {
458 Internal_GetGameWinPtr = GetClass()->GetMethod("Internal_GetGameWinPtr", 2);
459 ASSERT(Internal_GetGameWinPtr);
460 }
461 Window* win = nullptr;
462 void* params[2];
463 params[0] = &forceGet;
464 params[1] = &win;
465 Internal_GetGameWinPtr->Invoke(GetManagedInstance(), params, nullptr);
466 return win;
467 }
468 return nullptr;
469}
470
471Float2 ManagedEditor::GetGameWindowSize()
472{

Callers 5

SetCursorVisibleMethod · 0.80
SetCursorLockMethod · 0.80
UpdateMethod · 0.80
SetMousePositionMethod · 0.80
GetViewportMethod · 0.80

Calls 5

HasManagedInstanceFunction · 0.50
GetClassFunction · 0.50
GetManagedInstanceFunction · 0.50
GetMethodMethod · 0.45
InvokeMethod · 0.45

Tested by

no test coverage detected