diff options
| author | Ray San <[email protected]> | 2018-03-09 11:43:53 +0100 |
|---|---|---|
| committer | Ray San <[email protected]> | 2018-03-09 11:43:53 +0100 |
| commit | df50eada531b54d6771eff81cbe140f9453d54d9 (patch) | |
| tree | 659719ef12dbdedd9a51c85af0e43ac327c84b40 /src/raylib.h | |
| parent | 276847eca9290e71baf40c3e9e890efe441aac41 (diff) | |
| download | raylib-df50eada531b54d6771eff81cbe140f9453d54d9.tar.gz raylib-df50eada531b54d6771eff81cbe140f9453d54d9.zip | |
Added new functions
- SetWindowSize() to scale Windows in runtime
- SetMouseScale() to scale mouse input, useful when rendering game to a
RenderTexture2D that will be scaled to Window size (used on rFXGen tool)
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index c1d383fd..253f73fb 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -703,6 +703,7 @@ RLAPI void SetWindowTitle(const char *title); // Set title f RLAPI void SetWindowPosition(int x, int y); // Set window position on screen (only PLATFORM_DESKTOP) RLAPI void SetWindowMonitor(int monitor); // Set monitor for the current window (fullscreen mode) RLAPI void SetWindowMinSize(int width, int height); // Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE) +RLAPI void SetWindowSize(int width, int height); // Set window dimensions RLAPI int GetScreenWidth(void); // Get current screen width RLAPI int GetScreenHeight(void); // Get current screen height @@ -805,6 +806,7 @@ RLAPI int GetMouseX(void); // Returns mouse p RLAPI int GetMouseY(void); // Returns mouse position Y RLAPI Vector2 GetMousePosition(void); // Returns mouse position XY RLAPI void SetMousePosition(Vector2 position); // Set mouse position XY +RLAPI void SetMouseScale(float scale); // Set mouse scaling RLAPI int GetMouseWheelMove(void); // Returns mouse wheel movement Y // Input-related functions: touch |
