Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/ceguilua/ceguilua-0.5.0/package/CoordConverter.pkg @ 2608

Last change on this file since 2608 was 2608, checked in by rgrieder, 16 years ago

Large cleanup in CEGUILua:

  • Removed the heavy 1.7MB bind files and added the small pkg files from the CEGUI source instead
  • Those pkg files get copied version incrementally (starting with 0.5.0) to the binary dir. That saves a lot of files when having 4 different versions.
  • Added support for CEGUI 0.6.0 and 0.6.2
  • Added library info files
  • CEGUILua 0.5.0 finally supports Lua 5.1 too That means all version support both Lua 5.0 and 5.1
  • Added unified diffs with the changes to the CEGUILua source
  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1/***********************************************************************
2    CoordConverter utility class
3***********************************************************************/
4class CoordConverter
5{
6    static float windowToScreenX(const Window& window, const UDim& x);
7    static float windowToScreenX(const Window& window, const float x);
8
9    static float windowToScreenY(const Window& window, const UDim& y);
10    static float windowToScreenY(const Window& window, const float y);
11
12    static Vector2 windowToScreen(const Window& window, const UVector2& vec);
13    static Vector2 windowToScreen(const Window& window, const Vector2& vec);
14
15    static Rect windowToScreen(const Window& window, const URect& rect);
16    static Rect windowToScreen(const Window& window, const Rect& rect);
17
18    static float screenToWindowX(const Window& window, const UDim& x);
19    static float screenToWindowX(const Window& window, const float x);
20
21    static float screenToWindowY(const Window& window, const UDim& y);
22    static float screenToWindowY(const Window& window, const float y);
23
24    static Vector2 screenToWindow(const Window& window, const UVector2& vec);
25    static Vector2 screenToWindow(const Window& window, const Vector2& vec);
26
27    static Rect screenToWindow(const Window& window, const URect& rect);
28    static Rect screenToWindow(const Window& window, const Rect& rect);
29
30};
Note: See TracBrowser for help on using the repository browser.