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

Method GetClientSize

Source/Engine/Platform/SDL/SDLWindow.cpp:805–811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803}
804
805Float2 SDLWindow::GetClientSize() const
806{
807 int w, h;
808 SDL_GetWindowSizeInPixels(_window, &w, &h);
809
810 return Float2(static_cast<float>(w), static_cast<float>(h));;
811}
812
813Float2 SDLWindow::ScreenToClient(const Float2& screenPos) const
814{

Callers 2

EventMessageHookMethod · 0.45
EventFilterCallbackMethod · 0.45

Calls 1

Float2Class · 0.85

Tested by

no test coverage detected