ObjectivelyMVC 0.1.0
Object oriented MVC framework for OpenGL, SDL2 and GNU C
|
#include <ObjectivelyMVC/Types.h>
Go to the source code of this file.
Functions | |
OBJECTIVELYMVC_EXPORT SDL_Rect | MVC_TransformToWindow (SDL_Window *window, const SDL_Rect *rect) |
Transforms the specified rectangle to normalized device coordinates in window . More... | |
OBJECTIVELYMVC_EXPORT double | MVC_WindowScale (SDL_Window *window, int *height, int *drawableHeight) |
Resolves the scale factor of the specified window for High-DPI support. More... | |
OBJECTIVELYMVC_EXPORT 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.
OBJECTIVELYMVC_EXPORT 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.