|
ObjectivelyMVC 0.1.0
Object oriented MVC framework for OpenGL, SDL2 and GNU C
|
Go to the source code of this file.
Functions | |
| SDL_Rect | MVC_TransformToWindow (SDL_Window *window, const SDL_Rect *rect) |
Transforms the specified rectangle to normalized device coordinates in window. More... | |
| double | MVC_WindowScale (SDL_Window *window, int *height, int *drawableHeight) |
| Resolves the scale factor of the specified window for High-DPI support. More... | |
| SDL_Rect MVC_TransformToWindow | ( | SDL_Window * | window, |
| const SDL_Rect * | rect | ||
| ) |
Transforms the specified rectangle to normalized device coordinates in window.
| window | The window. |
| rect | A rectangle defined in object space. |
Definition at line 28 of file Window.c.
| double MVC_WindowScale | ( | SDL_Window * | window, |
| int * | height, | ||
| int * | drawableHeight | ||
| ) |
Resolves the scale factor of the specified window for High-DPI support.
| window | The window, or NULL for the current OpenGL window. |
| height | An optional output parameter to retrieve the window height. |
| drawableHeight | An optional output parameter to retrieve the window drawable height. |
Definition at line 47 of file Window.c.