Something went wrong. Try again.
Massive multiplayer game aiming to create a collaborative musical environment.
Something went wrong. Try again.
BoomBox Codebase External CEGUI-0.6.2 ScriptingModules CEGUILua LuaScriptModule package CoordConverter.pkg
1.4 kB · 30 lines
at master
12345678910111213141516171819202122232425262728293031/*********************************************************************** CoordConverter utility class***********************************************************************/class CoordConverter{ static float windowToScreenX(const Window& window, const UDim& x); static float windowToScreenX(const Window& window, const float x);
static float windowToScreenY(const Window& window, const UDim& y); static float windowToScreenY(const Window& window, const float y);
static Vector2 windowToScreen(const Window& window, const UVector2& vec); static Vector2 windowToScreen(const Window& window, const Vector2& vec);
static Rect windowToScreen(const Window& window, const URect& rect); static Rect windowToScreen(const Window& window, const Rect& rect);
static float screenToWindowX(const Window& window, const UDim& x); static float screenToWindowX(const Window& window, const float x);
static float screenToWindowY(const Window& window, const UDim& y); static float screenToWindowY(const Window& window, const float y);
static Vector2 screenToWindow(const Window& window, const UVector2& vec); static Vector2 screenToWindow(const Window& window, const Vector2& vec);
static Rect screenToWindow(const Window& window, const URect& rect); static Rect screenToWindow(const Window& window, const Rect& rect);
};