raylib 5.5.0.0.dev2__cp311-cp311-manylinux2014_x86_64.whl → 5.5.0.1__cp311-cp311-manylinux2014_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of raylib might be problematic. Click here for more details.
- pyray/__init__.py +3 -4
- pyray/__init__.pyi +3941 -3793
- pyray/py.typed +0 -0
- raylib/__init__.py +8 -2
- raylib/__init__.pyi +1132 -844
- raylib/_raylib_cffi.cpython-311-x86_64-linux-gnu.so +0 -0
- raylib/build.py +4 -2
- raylib/defines.py +1 -7
- raylib/enums.py +0 -1
- raylib/py.typed +0 -0
- raylib/raylib.h.modified +55 -46
- raylib/raymath.h.modified +4 -2
- raylib/rlgl.h.modified +7 -7
- raylib/version.py +1 -1
- {raylib-5.5.0.0.dev2.dist-info → raylib-5.5.0.1.dist-info}/METADATA +79 -40
- raylib-5.5.0.1.dist-info/RECORD +23 -0
- {raylib-5.5.0.0.dev2.dist-info → raylib-5.5.0.1.dist-info}/WHEEL +1 -1
- raylib-5.5.0.0.dev2.dist-info/RECORD +0 -21
- {raylib-5.5.0.0.dev2.dist-info → raylib-5.5.0.1.dist-info}/LICENSE +0 -0
- {raylib-5.5.0.0.dev2.dist-info → raylib-5.5.0.1.dist-info}/top_level.txt +0 -0
|
Binary file
|
raylib/build.py
CHANGED
|
@@ -175,11 +175,13 @@ def build_unix():
|
|
|
175
175
|
else: #platform.system() == "Linux":
|
|
176
176
|
print("BUILDING FOR LINUX")
|
|
177
177
|
extra_link_args = get_lib_flags() + [ '-lm', '-lpthread', '-lGL',
|
|
178
|
-
'-lrt', '-lm', '-ldl', '-
|
|
178
|
+
'-lrt', '-lm', '-ldl', '-lpthread', '-latomic']
|
|
179
179
|
if RAYLIB_PLATFORM=="SDL":
|
|
180
|
-
extra_link_args += ['-lSDL2']
|
|
180
|
+
extra_link_args += ['-lX11','-lSDL2']
|
|
181
181
|
elif RAYLIB_PLATFORM=="DRM":
|
|
182
182
|
extra_link_args += ['-lEGL', '-lgbm']
|
|
183
|
+
else:
|
|
184
|
+
extra_link_args += ['-lX11']
|
|
183
185
|
extra_compile_args = ["-Wno-incompatible-pointer-types", "-D_CFFI_NO_LIMITED_API"]
|
|
184
186
|
libraries = [] # Not sure why but we put them in extra_link_args instead so *shouldnt* be needed here
|
|
185
187
|
|
raylib/defines.py
CHANGED
|
@@ -3,7 +3,7 @@ import raylib
|
|
|
3
3
|
RAYLIB_VERSION_MAJOR: int = 5
|
|
4
4
|
RAYLIB_VERSION_MINOR: int = 5
|
|
5
5
|
RAYLIB_VERSION_PATCH: int = 0
|
|
6
|
-
RAYLIB_VERSION: str = "5.5
|
|
6
|
+
RAYLIB_VERSION: str = "5.5"
|
|
7
7
|
PI: float = 3.141592653589793
|
|
8
8
|
DEG2RAD = PI / 180.0
|
|
9
9
|
RAD2DEG = 180.0 / PI
|
|
@@ -14,10 +14,7 @@ MATERIAL_MAP_DIFFUSE = raylib.MATERIAL_MAP_ALBEDO
|
|
|
14
14
|
MATERIAL_MAP_SPECULAR = raylib.MATERIAL_MAP_METALNESS
|
|
15
15
|
SHADER_LOC_MAP_DIFFUSE = raylib.SHADER_LOC_MAP_ALBEDO
|
|
16
16
|
SHADER_LOC_MAP_SPECULAR = raylib.SHADER_LOC_MAP_METALNESS
|
|
17
|
-
PI: float = 3.141592653589793
|
|
18
17
|
EPSILON: float = 1e-06
|
|
19
|
-
DEG2RAD = PI / 180.0
|
|
20
|
-
RAD2DEG = 180.0 / PI
|
|
21
18
|
RLGL_VERSION: str = "5.0"
|
|
22
19
|
RL_DEFAULT_BATCH_BUFFER_ELEMENTS: int = 8192
|
|
23
20
|
RL_DEFAULT_BATCH_BUFFERS: int = 1
|
|
@@ -102,9 +99,6 @@ RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEIDS: int = 7
|
|
|
102
99
|
RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEWEIGHTS: int = 8
|
|
103
100
|
RL_SHADER_LOC_MAP_DIFFUSE = raylib.RL_SHADER_LOC_MAP_ALBEDO
|
|
104
101
|
RL_SHADER_LOC_MAP_SPECULAR = raylib.RL_SHADER_LOC_MAP_METALNESS
|
|
105
|
-
PI: float = 3.141592653589793
|
|
106
|
-
DEG2RAD = PI / 180.0
|
|
107
|
-
RAD2DEG = 180.0 / PI
|
|
108
102
|
GL_SHADING_LANGUAGE_VERSION: int = 35724
|
|
109
103
|
GL_COMPRESSED_RGB_S3TC_DXT1_EXT: int = 33776
|
|
110
104
|
GL_COMPRESSED_RGBA_S3TC_DXT1_EXT: int = 33777
|
raylib/enums.py
CHANGED
raylib/py.typed
ADDED
|
File without changes
|
raylib/raylib.h.modified
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**********************************************************************************************
|
|
2
2
|
*
|
|
3
|
-
* raylib v5.5
|
|
3
|
+
* raylib v5.5 - A simple and easy-to-use library to enjoy videogames programming (www.raylib.com)
|
|
4
4
|
*
|
|
5
5
|
* FEATURES:
|
|
6
6
|
* - NO external dependencies, all required libraries included with raylib
|
|
7
7
|
* - Multiplatform: Windows, Linux, FreeBSD, OpenBSD, NetBSD, DragonFly,
|
|
8
8
|
* MacOS, Haiku, Android, Raspberry Pi, DRM native, HTML5.
|
|
9
9
|
* - Written in plain C code (C99) in PascalCase/camelCase notation
|
|
10
|
-
* - Hardware accelerated with OpenGL (1.1, 2.1, 3.3, 4.3
|
|
10
|
+
* - Hardware accelerated with OpenGL (1.1, 2.1, 3.3, 4.3, ES2, ES3 - choose at compile)
|
|
11
11
|
* - Unique OpenGL abstraction layer (usable as standalone module): [rlgl]
|
|
12
|
-
* - Multiple Fonts formats supported (TTF,
|
|
12
|
+
* - Multiple Fonts formats supported (TTF, OTF, FNT, BDF, Sprite fonts)
|
|
13
13
|
* - Outstanding texture formats support, including compressed formats (DXT, ETC, ASTC)
|
|
14
14
|
* - Full 3d support for 3d Shapes, Models, Billboards, Heightmaps and more!
|
|
15
15
|
* - Flexible Materials system, supporting classic maps and PBR maps
|
|
16
|
-
* - Animated 3D models supported (skeletal bones animation) (IQM)
|
|
16
|
+
* - Animated 3D models supported (skeletal bones animation) (IQM, M3D, GLTF)
|
|
17
17
|
* - Shaders support, including Model shaders and Postprocessing shaders
|
|
18
18
|
* - Powerful math module for Vector, Matrix and Quaternion operations: [raymath]
|
|
19
|
-
* - Audio loading and playing with streaming support (WAV, OGG, MP3, FLAC, XM, MOD)
|
|
19
|
+
* - Audio loading and playing with streaming support (WAV, OGG, MP3, FLAC, QOA, XM, MOD)
|
|
20
20
|
* - VR stereo rendering with configurable HMD device parameters
|
|
21
21
|
* - Bindings to multiple programming languages available!
|
|
22
22
|
*
|
|
@@ -27,29 +27,35 @@
|
|
|
27
27
|
* - One default RenderBatch is loaded on rlglInit()->rlLoadRenderBatch() [rlgl] (OpenGL 3.3 or ES2)
|
|
28
28
|
*
|
|
29
29
|
* DEPENDENCIES (included):
|
|
30
|
-
* [rcore] rglfw (Camilla Löwy - github.com/glfw/glfw) for window/context management and input
|
|
31
|
-
* [
|
|
30
|
+
* [rcore][GLFW] rglfw (Camilla Löwy - github.com/glfw/glfw) for window/context management and input
|
|
31
|
+
* [rcore][RGFW] rgfw (ColleagueRiley - github.com/ColleagueRiley/RGFW) for window/context management and input
|
|
32
|
+
* [rlgl] glad/glad_gles2 (David Herberth - github.com/Dav1dde/glad) for OpenGL 3.3 extensions loading
|
|
32
33
|
* [raudio] miniaudio (David Reid - github.com/mackron/miniaudio) for audio device/context management
|
|
33
34
|
*
|
|
34
35
|
* OPTIONAL DEPENDENCIES (included):
|
|
35
36
|
* [rcore] msf_gif (Miles Fogle) for GIF recording
|
|
36
37
|
* [rcore] sinfl (Micha Mettke) for DEFLATE decompression algorithm
|
|
37
38
|
* [rcore] sdefl (Micha Mettke) for DEFLATE compression algorithm
|
|
39
|
+
* [rcore] rprand (Ramon Snatamaria) for pseudo-random numbers generation
|
|
40
|
+
* [rtextures] qoi (Dominic Szablewski - https://phoboslab.org) for QOI image manage
|
|
38
41
|
* [rtextures] stb_image (Sean Barret) for images loading (BMP, TGA, PNG, JPEG, HDR...)
|
|
39
42
|
* [rtextures] stb_image_write (Sean Barret) for image writing (BMP, TGA, PNG, JPG)
|
|
40
|
-
* [rtextures]
|
|
43
|
+
* [rtextures] stb_image_resize2 (Sean Barret) for image resizing algorithms
|
|
44
|
+
* [rtextures] stb_perlin (Sean Barret) for Perlin Noise image generation
|
|
41
45
|
* [rtext] stb_truetype (Sean Barret) for ttf fonts loading
|
|
42
46
|
* [rtext] stb_rect_pack (Sean Barret) for rectangles packing
|
|
43
47
|
* [rmodels] par_shapes (Philip Rideout) for parametric 3d shapes generation
|
|
44
48
|
* [rmodels] tinyobj_loader_c (Syoyo Fujita) for models loading (OBJ, MTL)
|
|
45
49
|
* [rmodels] cgltf (Johannes Kuhlmann) for models loading (glTF)
|
|
46
|
-
* [rmodels]
|
|
50
|
+
* [rmodels] m3d (bzt) for models loading (M3D, https://bztsrc.gitlab.io/model3d)
|
|
51
|
+
* [rmodels] vox_loader (Johann Nadalutti) for models loading (VOX)
|
|
47
52
|
* [raudio] dr_wav (David Reid) for WAV audio file loading
|
|
48
53
|
* [raudio] dr_flac (David Reid) for FLAC audio file loading
|
|
49
54
|
* [raudio] dr_mp3 (David Reid) for MP3 audio file loading
|
|
50
55
|
* [raudio] stb_vorbis (Sean Barret) for OGG audio loading
|
|
51
56
|
* [raudio] jar_xm (Joshua Reisenauer) for XM audio module loading
|
|
52
57
|
* [raudio] jar_mod (Joshua Reisenauer) for MOD audio module loading
|
|
58
|
+
* [raudio] qoa (Dominic Szablewski - https://phoboslab.org) for QOA audio manage
|
|
53
59
|
*
|
|
54
60
|
*
|
|
55
61
|
* LICENSE: zlib/libpng
|
|
@@ -700,8 +706,7 @@ typedef enum {
|
|
|
700
706
|
CUBEMAP_LAYOUT_LINE_VERTICAL, // Layout is defined by a vertical line with faces
|
|
701
707
|
CUBEMAP_LAYOUT_LINE_HORIZONTAL, // Layout is defined by a horizontal line with faces
|
|
702
708
|
CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR, // Layout is defined by a 3x4 cross with cubemap faces
|
|
703
|
-
CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE
|
|
704
|
-
CUBEMAP_LAYOUT_PANORAMA // Layout is defined by a panorama image (equirrectangular map)
|
|
709
|
+
CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE // Layout is defined by a 4x3 cross with cubemap faces
|
|
705
710
|
} CubemapLayout;
|
|
706
711
|
// Font type, defines generation method
|
|
707
712
|
typedef enum {
|
|
@@ -774,36 +779,36 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
|
|
|
774
779
|
bool WindowShouldClose(void); // Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)
|
|
775
780
|
bool IsWindowReady(void); // Check if window has been initialized successfully
|
|
776
781
|
bool IsWindowFullscreen(void); // Check if window is currently fullscreen
|
|
777
|
-
bool IsWindowHidden(void); // Check if window is currently hidden
|
|
778
|
-
bool IsWindowMinimized(void); // Check if window is currently minimized
|
|
779
|
-
bool IsWindowMaximized(void); // Check if window is currently maximized
|
|
780
|
-
bool IsWindowFocused(void); // Check if window is currently focused
|
|
782
|
+
bool IsWindowHidden(void); // Check if window is currently hidden
|
|
783
|
+
bool IsWindowMinimized(void); // Check if window is currently minimized
|
|
784
|
+
bool IsWindowMaximized(void); // Check if window is currently maximized
|
|
785
|
+
bool IsWindowFocused(void); // Check if window is currently focused
|
|
781
786
|
bool IsWindowResized(void); // Check if window has been resized last frame
|
|
782
787
|
bool IsWindowState(unsigned int flag); // Check if one specific window flag is enabled
|
|
783
|
-
void SetWindowState(unsigned int flags); // Set window configuration state using flags
|
|
788
|
+
void SetWindowState(unsigned int flags); // Set window configuration state using flags
|
|
784
789
|
void ClearWindowState(unsigned int flags); // Clear window configuration state flags
|
|
785
|
-
void ToggleFullscreen(void); // Toggle window state: fullscreen/windowed
|
|
786
|
-
void ToggleBorderlessWindowed(void); // Toggle window state: borderless windowed
|
|
787
|
-
void MaximizeWindow(void); // Set window state: maximized, if resizable
|
|
788
|
-
void MinimizeWindow(void); // Set window state: minimized, if resizable
|
|
789
|
-
void RestoreWindow(void); // Set window state: not minimized/maximized
|
|
790
|
-
void SetWindowIcon(Image image); // Set icon for window (single image, RGBA 32bit
|
|
791
|
-
void SetWindowIcons(Image *images, int count); // Set icon for window (multiple images, RGBA 32bit
|
|
792
|
-
void SetWindowTitle(const char *title); // Set title for window
|
|
793
|
-
void SetWindowPosition(int x, int y); // Set window position on screen
|
|
790
|
+
void ToggleFullscreen(void); // Toggle window state: fullscreen/windowed, resizes monitor to match window resolution
|
|
791
|
+
void ToggleBorderlessWindowed(void); // Toggle window state: borderless windowed, resizes window to match monitor resolution
|
|
792
|
+
void MaximizeWindow(void); // Set window state: maximized, if resizable
|
|
793
|
+
void MinimizeWindow(void); // Set window state: minimized, if resizable
|
|
794
|
+
void RestoreWindow(void); // Set window state: not minimized/maximized
|
|
795
|
+
void SetWindowIcon(Image image); // Set icon for window (single image, RGBA 32bit)
|
|
796
|
+
void SetWindowIcons(Image *images, int count); // Set icon for window (multiple images, RGBA 32bit)
|
|
797
|
+
void SetWindowTitle(const char *title); // Set title for window
|
|
798
|
+
void SetWindowPosition(int x, int y); // Set window position on screen
|
|
794
799
|
void SetWindowMonitor(int monitor); // Set monitor for the current window
|
|
795
800
|
void SetWindowMinSize(int width, int height); // Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)
|
|
796
801
|
void SetWindowMaxSize(int width, int height); // Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE)
|
|
797
802
|
void SetWindowSize(int width, int height); // Set window dimensions
|
|
798
|
-
void SetWindowOpacity(float opacity); // Set window opacity [0.0f..1.0f]
|
|
799
|
-
void SetWindowFocused(void); // Set window focused
|
|
803
|
+
void SetWindowOpacity(float opacity); // Set window opacity [0.0f..1.0f]
|
|
804
|
+
void SetWindowFocused(void); // Set window focused
|
|
800
805
|
void *GetWindowHandle(void); // Get native window handle
|
|
801
806
|
int GetScreenWidth(void); // Get current screen width
|
|
802
807
|
int GetScreenHeight(void); // Get current screen height
|
|
803
808
|
int GetRenderWidth(void); // Get current render width (it considers HiDPI)
|
|
804
809
|
int GetRenderHeight(void); // Get current render height (it considers HiDPI)
|
|
805
810
|
int GetMonitorCount(void); // Get number of connected monitors
|
|
806
|
-
int GetCurrentMonitor(void); // Get current
|
|
811
|
+
int GetCurrentMonitor(void); // Get current monitor where window is placed
|
|
807
812
|
Vector2 GetMonitorPosition(int monitor); // Get specified monitor position
|
|
808
813
|
int GetMonitorWidth(int monitor); // Get specified monitor width (current video mode used by monitor)
|
|
809
814
|
int GetMonitorHeight(int monitor); // Get specified monitor height (current video mode used by monitor)
|
|
@@ -815,6 +820,7 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
|
|
|
815
820
|
const char *GetMonitorName(int monitor); // Get the human-readable, UTF-8 encoded name of the specified monitor
|
|
816
821
|
void SetClipboardText(const char *text); // Set clipboard text content
|
|
817
822
|
const char *GetClipboardText(void); // Get clipboard text content
|
|
823
|
+
Image GetClipboardImage(void); // Get clipboard image content
|
|
818
824
|
void EnableEventWaiting(void); // Enable waiting for events on EndDrawing(), no automatic event polling
|
|
819
825
|
void DisableEventWaiting(void); // Disable waiting for events on EndDrawing(), automatic events polling
|
|
820
826
|
// Cursor-related functions
|
|
@@ -849,7 +855,7 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
|
|
|
849
855
|
// NOTE: Shader functionality is not available on OpenGL 1.1
|
|
850
856
|
Shader LoadShader(const char *vsFileName, const char *fsFileName); // Load shader from files and bind default locations
|
|
851
857
|
Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode); // Load shader from code strings and bind default locations
|
|
852
|
-
bool
|
|
858
|
+
bool IsShaderValid(Shader shader); // Check if a shader is valid (loaded on GPU)
|
|
853
859
|
int GetShaderLocation(Shader shader, const char *uniformName); // Get shader uniform location
|
|
854
860
|
int GetShaderLocationAttrib(Shader shader, const char *attribName); // Get shader attribute location
|
|
855
861
|
void SetShaderValue(Shader shader, int locIndex, const void *value, int uniformType); // Set shader uniform value
|
|
@@ -938,6 +944,9 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
|
|
|
938
944
|
unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize); // Decompress data (DEFLATE algorithm), memory must be MemFree()
|
|
939
945
|
char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize); // Encode data to Base64 string, memory must be MemFree()
|
|
940
946
|
unsigned char *DecodeDataBase64(const unsigned char *data, int *outputSize); // Decode Base64 string data, memory must be MemFree()
|
|
947
|
+
unsigned int ComputeCRC32(unsigned char *data, int dataSize); // Compute CRC32 hash code
|
|
948
|
+
unsigned int *ComputeMD5(unsigned char *data, int dataSize); // Compute MD5 hash code, returns static int[4] (16 bytes)
|
|
949
|
+
unsigned int *ComputeSHA1(unsigned char *data, int dataSize); // Compute SHA1 hash code, returns static int[5] (20 bytes)
|
|
941
950
|
// Automation events functionality
|
|
942
951
|
AutomationEventList LoadAutomationEventList(const char *fileName); // Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS
|
|
943
952
|
void UnloadAutomationEventList(AutomationEventList list); // Unload automation events list from file
|
|
@@ -952,7 +961,7 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
|
|
|
952
961
|
//------------------------------------------------------------------------------------
|
|
953
962
|
// Input-related functions: keyboard
|
|
954
963
|
bool IsKeyPressed(int key); // Check if a key has been pressed once
|
|
955
|
-
bool IsKeyPressedRepeat(int key); // Check if a key has been pressed again
|
|
964
|
+
bool IsKeyPressedRepeat(int key); // Check if a key has been pressed again
|
|
956
965
|
bool IsKeyDown(int key); // Check if a key is being pressed
|
|
957
966
|
bool IsKeyReleased(int key); // Check if a key has been released once
|
|
958
967
|
bool IsKeyUp(int key); // Check if a key is NOT being pressed
|
|
@@ -970,7 +979,7 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
|
|
|
970
979
|
int GetGamepadAxisCount(int gamepad); // Get gamepad axis count for a gamepad
|
|
971
980
|
float GetGamepadAxisMovement(int gamepad, int axis); // Get axis movement value for a gamepad axis
|
|
972
981
|
int SetGamepadMappings(const char *mappings); // Set internal gamepad mappings (SDL_GameControllerDB)
|
|
973
|
-
void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor); // Set gamepad vibration for both motors
|
|
982
|
+
void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor, float duration); // Set gamepad vibration for both motors (duration in seconds)
|
|
974
983
|
// Input-related functions: mouse
|
|
975
984
|
bool IsMouseButtonPressed(int button); // Check if a mouse button has been pressed once
|
|
976
985
|
bool IsMouseButtonDown(int button); // Check if a mouse button is being pressed
|
|
@@ -998,7 +1007,7 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
|
|
|
998
1007
|
void SetGesturesEnabled(unsigned int flags); // Enable a set of gestures using flags
|
|
999
1008
|
bool IsGestureDetected(unsigned int gesture); // Check if a gesture have been detected
|
|
1000
1009
|
int GetGestureDetected(void); // Get latest detected gesture
|
|
1001
|
-
float GetGestureHoldDuration(void); // Get gesture hold time in
|
|
1010
|
+
float GetGestureHoldDuration(void); // Get gesture hold time in seconds
|
|
1002
1011
|
Vector2 GetGestureDragVector(void); // Get gesture drag vector
|
|
1003
1012
|
float GetGestureDragAngle(void); // Get gesture drag angle
|
|
1004
1013
|
Vector2 GetGesturePinchVector(void); // Get gesture pinch delta
|
|
@@ -1076,13 +1085,13 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
|
|
|
1076
1085
|
bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2); // Check collision between two rectangles
|
|
1077
1086
|
bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2); // Check collision between two circles
|
|
1078
1087
|
bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec); // Check collision between circle and rectangle
|
|
1088
|
+
bool CheckCollisionCircleLine(Vector2 center, float radius, Vector2 p1, Vector2 p2); // Check if circle collides with a line created betweeen two points [p1] and [p2]
|
|
1079
1089
|
bool CheckCollisionPointRec(Vector2 point, Rectangle rec); // Check if point is inside rectangle
|
|
1080
1090
|
bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius); // Check if point is inside circle
|
|
1081
1091
|
bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3); // Check if point is inside a triangle
|
|
1092
|
+
bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold); // Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
|
|
1082
1093
|
bool CheckCollisionPointPoly(Vector2 point, const Vector2 *points, int pointCount); // Check if point is within a polygon described by array of vertices
|
|
1083
1094
|
bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint); // Check the collision between two lines defined by two points each, returns collision point by reference
|
|
1084
|
-
bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold); // Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
|
|
1085
|
-
bool CheckCollisionCircleLine(Vector2 center, float radius, Vector2 p1, Vector2 p2); // Check if circle collides with a line created betweeen two points [p1] and [p2]
|
|
1086
1095
|
Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2); // Get collision rectangle for two rectangles collision
|
|
1087
1096
|
//------------------------------------------------------------------------------------
|
|
1088
1097
|
// Texture Loading and Drawing Functions (Module: textures)
|
|
@@ -1096,7 +1105,7 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
|
|
|
1096
1105
|
Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, int dataSize); // Load image from memory buffer, fileType refers to extension: i.e. '.png'
|
|
1097
1106
|
Image LoadImageFromTexture(Texture2D texture); // Load image from GPU texture data
|
|
1098
1107
|
Image LoadImageFromScreen(void); // Load image from screen buffer and (screenshot)
|
|
1099
|
-
bool
|
|
1108
|
+
bool IsImageValid(Image image); // Check if an image is valid (data and parameters)
|
|
1100
1109
|
void UnloadImage(Image image); // Unload image from CPU memory (RAM)
|
|
1101
1110
|
bool ExportImage(Image image, const char *fileName); // Export image data to file, returns true on success
|
|
1102
1111
|
unsigned char *ExportImageToMemory(Image image, const char *fileType, int *fileSize); // Export image to memory buffer
|
|
@@ -1178,9 +1187,9 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
|
|
|
1178
1187
|
Texture2D LoadTextureFromImage(Image image); // Load texture from image data
|
|
1179
1188
|
TextureCubemap LoadTextureCubemap(Image image, int layout); // Load cubemap from image, multiple image cubemap layouts supported
|
|
1180
1189
|
RenderTexture2D LoadRenderTexture(int width, int height); // Load texture for rendering (framebuffer)
|
|
1181
|
-
bool
|
|
1190
|
+
bool IsTextureValid(Texture2D texture); // Check if a texture is valid (loaded in GPU)
|
|
1182
1191
|
void UnloadTexture(Texture2D texture); // Unload texture from GPU memory (VRAM)
|
|
1183
|
-
bool
|
|
1192
|
+
bool IsRenderTextureValid(RenderTexture2D target); // Check if a render texture is valid (loaded in GPU)
|
|
1184
1193
|
void UnloadRenderTexture(RenderTexture2D target); // Unload render texture from GPU memory (VRAM)
|
|
1185
1194
|
void UpdateTexture(Texture2D texture, const void *pixels); // Update GPU texture with new data
|
|
1186
1195
|
void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels); // Update GPU texture rectangle with new data
|
|
@@ -1222,7 +1231,7 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
|
|
|
1222
1231
|
Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount); // Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height
|
|
1223
1232
|
Font LoadFontFromImage(Image image, Color key, int firstChar); // Load font from Image (XNA style)
|
|
1224
1233
|
Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount); // Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
|
|
1225
|
-
bool
|
|
1234
|
+
bool IsFontValid(Font font); // Check if a font is valid (font data loaded, WARNING: GPU texture not checked)
|
|
1226
1235
|
GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount, int type); // Load font data for further use
|
|
1227
1236
|
Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod); // Generate image font atlas using chars info
|
|
1228
1237
|
void UnloadFontData(GlyphInfo *glyphs, int glyphCount); // Unload font chars info data (RAM)
|
|
@@ -1303,7 +1312,7 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
|
|
|
1303
1312
|
// Model management functions
|
|
1304
1313
|
Model LoadModel(const char *fileName); // Load model from files (meshes and materials)
|
|
1305
1314
|
Model LoadModelFromMesh(Mesh mesh); // Load model from generated mesh (default material)
|
|
1306
|
-
bool
|
|
1315
|
+
bool IsModelValid(Model model); // Check if a model is valid (loaded in GPU, VAO/VBOs)
|
|
1307
1316
|
void UnloadModel(Model model); // Unload model (including meshes) from memory (RAM and/or VRAM)
|
|
1308
1317
|
BoundingBox GetModelBoundingBox(Model model); // Compute model bounding box limits (considers all meshes)
|
|
1309
1318
|
// Model drawing functions
|
|
@@ -1342,17 +1351,17 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
|
|
|
1342
1351
|
// Material loading/unloading functions
|
|
1343
1352
|
Material *LoadMaterials(const char *fileName, int *materialCount); // Load materials from model file
|
|
1344
1353
|
Material LoadMaterialDefault(void); // Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
|
|
1345
|
-
bool
|
|
1354
|
+
bool IsMaterialValid(Material material); // Check if a material is valid (shader assigned, map textures loaded in GPU)
|
|
1346
1355
|
void UnloadMaterial(Material material); // Unload material from GPU memory (VRAM)
|
|
1347
1356
|
void SetMaterialTexture(Material *material, int mapType, Texture2D texture); // Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)
|
|
1348
1357
|
void SetModelMeshMaterial(Model *model, int meshId, int materialId); // Set material for a mesh
|
|
1349
1358
|
// Model animations loading/unloading functions
|
|
1350
1359
|
ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount); // Load model animations from file
|
|
1351
|
-
void UpdateModelAnimation(Model model, ModelAnimation anim, int frame); // Update model animation pose
|
|
1360
|
+
void UpdateModelAnimation(Model model, ModelAnimation anim, int frame); // Update model animation pose (CPU)
|
|
1361
|
+
void UpdateModelAnimationBones(Model model, ModelAnimation anim, int frame); // Update model animation mesh bone matrices (GPU skinning)
|
|
1352
1362
|
void UnloadModelAnimation(ModelAnimation anim); // Unload animation data
|
|
1353
1363
|
void UnloadModelAnimations(ModelAnimation *animations, int animCount); // Unload animation array data
|
|
1354
1364
|
bool IsModelAnimationValid(Model model, ModelAnimation anim); // Check model animation skeleton match
|
|
1355
|
-
void UpdateModelAnimationBoneMatrices(Model model, ModelAnimation anim, int frame); // Update model animation mesh bone matrices (Note GPU skinning does not work on Mac)
|
|
1356
1365
|
// Collision detection functions
|
|
1357
1366
|
bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2); // Check collision between two spheres
|
|
1358
1367
|
bool CheckCollisionBoxes(BoundingBox box1, BoundingBox box2); // Check collision between two bounding boxes
|
|
@@ -1375,11 +1384,11 @@ typedef void (*AudioCallback)(void *bufferData, unsigned int frames);
|
|
|
1375
1384
|
// Wave/Sound loading/unloading functions
|
|
1376
1385
|
Wave LoadWave(const char *fileName); // Load wave data from file
|
|
1377
1386
|
Wave LoadWaveFromMemory(const char *fileType, const unsigned char *fileData, int dataSize); // Load wave from memory buffer, fileType refers to extension: i.e. '.wav'
|
|
1378
|
-
bool
|
|
1387
|
+
bool IsWaveValid(Wave wave); // Checks if wave data is valid (data loaded and parameters)
|
|
1379
1388
|
Sound LoadSound(const char *fileName); // Load sound from file
|
|
1380
1389
|
Sound LoadSoundFromWave(Wave wave); // Load sound from wave data
|
|
1381
1390
|
Sound LoadSoundAlias(Sound source); // Create a new sound that shares the same sample data as the source sound, does not own the sound data
|
|
1382
|
-
bool
|
|
1391
|
+
bool IsSoundValid(Sound sound); // Checks if a sound is valid (data loaded and buffers initialized)
|
|
1383
1392
|
void UpdateSound(Sound sound, const void *data, int sampleCount); // Update sound buffer with new data
|
|
1384
1393
|
void UnloadWave(Wave wave); // Unload wave data
|
|
1385
1394
|
void UnloadSound(Sound sound); // Unload sound
|
|
@@ -1403,7 +1412,7 @@ typedef void (*AudioCallback)(void *bufferData, unsigned int frames);
|
|
|
1403
1412
|
// Music management functions
|
|
1404
1413
|
Music LoadMusicStream(const char *fileName); // Load music stream from file
|
|
1405
1414
|
Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data, int dataSize); // Load music stream from data
|
|
1406
|
-
bool
|
|
1415
|
+
bool IsMusicValid(Music music); // Checks if a music stream is valid (context and buffers initialized)
|
|
1407
1416
|
void UnloadMusicStream(Music music); // Unload music stream
|
|
1408
1417
|
void PlayMusicStream(Music music); // Start music playing
|
|
1409
1418
|
bool IsMusicStreamPlaying(Music music); // Check if music is playing
|
|
@@ -1419,7 +1428,7 @@ typedef void (*AudioCallback)(void *bufferData, unsigned int frames);
|
|
|
1419
1428
|
float GetMusicTimePlayed(Music music); // Get current music time played (in seconds)
|
|
1420
1429
|
// AudioStream management functions
|
|
1421
1430
|
AudioStream LoadAudioStream(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels); // Load audio stream (to stream raw audio pcm data)
|
|
1422
|
-
bool
|
|
1431
|
+
bool IsAudioStreamValid(AudioStream stream); // Checks if an audio stream is valid (buffers initialized)
|
|
1423
1432
|
void UnloadAudioStream(AudioStream stream); // Unload audio stream and free memory
|
|
1424
1433
|
void UpdateAudioStream(AudioStream stream, const void *data, int frameCount); // Update audio stream buffers with data
|
|
1425
1434
|
bool IsAudioStreamProcessed(AudioStream stream); // Check if any audio stream buffers requires refill
|
raylib/raymath.h.modified
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**********************************************************************************************
|
|
2
2
|
*
|
|
3
|
-
* raymath
|
|
3
|
+
* raymath v2.0 - Math functions to work with Vector2, Vector3, Matrix and Quaternions
|
|
4
4
|
*
|
|
5
5
|
* CONVENTIONS:
|
|
6
6
|
* - Matrix structure is defined as row-major (memory layout) but parameters naming AND all
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* - Functions are always self-contained, no function use another raymath function inside,
|
|
13
13
|
* required code is directly re-implemented inside
|
|
14
14
|
* - Functions input parameters are always received by value (2 unavoidable exceptions)
|
|
15
|
-
* - Functions use always a "result" variable for return
|
|
15
|
+
* - Functions use always a "result" variable for return (except C++ operators)
|
|
16
16
|
* - Functions are always defined inline
|
|
17
17
|
* - Angles are always in radians (DEG2RAD/RAD2DEG macros provided for convenience)
|
|
18
18
|
* - No compound literals used to make sure libray is compatible with C++
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
* #define RAYMATH_STATIC_INLINE
|
|
27
27
|
* This may use up lots of memory.
|
|
28
28
|
*
|
|
29
|
+
* #define RAYMATH_DISABLE_CPP_OPERATORS
|
|
30
|
+
* Disables C++ operator overloads for raymath types.
|
|
29
31
|
*
|
|
30
32
|
* LICENSE: zlib/libpng
|
|
31
33
|
*
|
raylib/rlgl.h.modified
CHANGED
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
* rlgl v5.0 - A multi-OpenGL abstraction layer with an immediate-mode style API
|
|
4
4
|
*
|
|
5
5
|
* DESCRIPTION:
|
|
6
|
-
* An abstraction layer for multiple OpenGL versions (1.1, 2.1, 3.3 Core, 4.3 Core, ES 2.0)
|
|
6
|
+
* An abstraction layer for multiple OpenGL versions (1.1, 2.1, 3.3 Core, 4.3 Core, ES 2.0, ES 3.0)
|
|
7
7
|
* that provides a pseudo-OpenGL 1.1 immediate-mode style API (rlVertex, rlTranslate, rlRotate...)
|
|
8
8
|
*
|
|
9
9
|
* ADDITIONAL NOTES:
|
|
10
10
|
* When choosing an OpenGL backend different than OpenGL 1.1, some internal buffer are
|
|
11
|
-
* initialized on rlglInit() to accumulate vertex data
|
|
11
|
+
* initialized on rlglInit() to accumulate vertex data
|
|
12
12
|
*
|
|
13
13
|
* When an internal state change is required all the stored vertex data is renderer in batch,
|
|
14
|
-
* additionally, rlDrawRenderBatchActive() could be called to force flushing of the batch
|
|
14
|
+
* additionally, rlDrawRenderBatchActive() could be called to force flushing of the batch
|
|
15
15
|
*
|
|
16
16
|
* Some resources are also loaded for convenience, here the complete list:
|
|
17
17
|
* - Default batch (RLGL.defaultBatch): RenderBatch system to accumulate vertex data
|
|
18
18
|
* - Default texture (RLGL.defaultTextureId): 1x1 white pixel R8G8B8A8
|
|
19
19
|
* - Default shader (RLGL.State.defaultShaderId, RLGL.State.defaultShaderLocs)
|
|
20
20
|
*
|
|
21
|
-
* Internal buffer (and resources) must be manually unloaded calling rlglClose()
|
|
21
|
+
* Internal buffer (and resources) must be manually unloaded calling rlglClose()
|
|
22
22
|
*
|
|
23
23
|
* CONFIGURATION:
|
|
24
24
|
* #define GRAPHICS_API_OPENGL_11
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
* required by any other module, use rlGetVersion() to check it
|
|
33
33
|
*
|
|
34
34
|
* #define RLGL_IMPLEMENTATION
|
|
35
|
-
* Generates the implementation of the library into the included file
|
|
35
|
+
* Generates the implementation of the library into the included file
|
|
36
36
|
* If not defined, the library is in header only mode and can be included in other headers
|
|
37
|
-
* or source files without problems. But only ONE file should hold the implementation
|
|
37
|
+
* or source files without problems. But only ONE file should hold the implementation
|
|
38
38
|
*
|
|
39
39
|
* #define RLGL_RENDER_TEXTURES_HINT
|
|
40
40
|
* Enable framebuffer objects (fbo) support (enabled by default)
|
|
@@ -464,7 +464,7 @@ typedef enum {
|
|
|
464
464
|
// Textures management
|
|
465
465
|
unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount); // Load texture data
|
|
466
466
|
unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer); // Load depth texture/renderbuffer (to be attached to fbo)
|
|
467
|
-
unsigned int rlLoadTextureCubemap(const void *data, int size, int format); // Load texture cubemap data
|
|
467
|
+
unsigned int rlLoadTextureCubemap(const void *data, int size, int format, int mipmapCount); // Load texture cubemap data
|
|
468
468
|
void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data); // Update texture with new data on GPU
|
|
469
469
|
void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType); // Get OpenGL internal formats
|
|
470
470
|
const char *rlGetPixelFormatName(unsigned int format); // Get name string for pixel format
|
raylib/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "5.5.0.
|
|
1
|
+
__version__ = "5.5.0.1"
|