-
Notifications
You must be signed in to change notification settings - Fork 2
use raylib 3.0.0_70
Orfeo Da Vià edited this page Nov 4, 2020
·
1 revision
Based on commit 72443f8f25b1f8ded3b05da17857b7eeb1556b35
(May 2 11:56:24 2020 +0200).
Create new branch:
$ git checkout -b g72443f8f 72443f8f
$ git describe --tags
3.0.0-70-g72443f8f
then compile and install:
$ cd raylib/src
$ make RAYLIB_LIBTYPE=SHARED
$ sudo make install RAYLIB_LIBTYPE=SHARED
This commit introduces breaking change:
- Added
IsWindowFocused
,GetWindowScaleDPI
- Removed
LoadImagePro
- Reviewed
ImageDrawText
params order
@@ -873,7 +871,8 @@
RLAPI bool WindowShouldClose(void); // Check if KEY_ESCAPE pressed or Close icon pressed
RLAPI void CloseWindow(void); // Close window and unload OpenGL context
RLAPI bool IsWindowReady(void); // Check if window has been initialized successfully
+RLAPI bool IsWindowFocused(void); // Check if window has been focused
@@ -895,6 +894,7 @@
RLAPI Vector2 GetWindowPosition(void); // Get window position XY on monitor
+RLAPI Vector2 GetWindowScaleDPI(void); // Get window scale DPI factor
RLAPI const char *GetMonitorName(int monitor); // Get the human-readable, UTF-8 encoded name of the primary monitor
@@ -1106,7 +1106,6 @@
// NOTE: This functions do not require GPU access
RLAPI Image LoadImageEx(Color *pixels, int width, int height); // Load image from Color array data (RGBA - 32bit)
-RLAPI Image LoadImagePro(void *data, int width, int height, int format); // Load image from raw data with parameters
RLAPI Image LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize); // Load image from RAW file data
@@ -1168,8 +1167,8 @@
-RLAPI void ImageDrawText(Image *dst, Vector2 position, const char *text, int fontSize, Color color); // Draw text (default font) within an image (destination)
-RLAPI void ImageDrawTextEx(Image *dst, Vector2 position, Font font, const char *text, float fontSize, float spacing, Color color); // Draw text (custom sprite font) within an image (destination)
+RLAPI void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color); // Draw text (using default font) within an image (destination)
+RLAPI void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint); // Draw text (custom sprite font) within an image (destination)
To use raylib version 3.0.0-70 in your D projects:
dub.json
"versions": [ "RAYLIB_300_70" ],
dub.sdl
versions "RAYLIB_300_70"
(RAYLIB_301
is deprecated)