Skip to content

Commit b4ed450

Browse files
version bump
1 parent 7394f79 commit b4ed450

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Python Bindings for Raylib 4.0.0
1+
# Python Bindings for Raylib 4.2
22

33
New CFFI API static bindings.
44
* Automatically generated to be as close as possible to
55
original Raylib.
66
* Faster, fewer bugs and easier to maintain than ctypes.
77
* Commercial-friendly license.
88
* Docstrings and auto-completion.
9-
* **Now includes extra libraries: raygui, rlgl and physac**
9+
* **Now includes extra libraries: raymath, raygui, rlgl and physac**
1010

1111
[Full documentation](http://electronstudio.github.io/raylib-python-cffi)
1212

@@ -71,6 +71,7 @@ Use [the Python API](https://electronstudio.github.io/raylib-python-cffi/pyray.h
7171
# App showcase
7272

7373
[Tanki](https://github.com/pkulev/tanki)
74+
7475
[Alloy Bloxel Editor](https://pebaz.itch.io/alloy-bloxel-editor)
7576

7677
Add your app here!

raylib/raylib.h.modified

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ typedef struct VrStereoConfig {
348348
} VrStereoConfig;
349349
// File path list
350350
typedef struct FilePathList {
351+
unsigned int capacity; // Filepaths max entries
351352
unsigned int count; // Filepaths entries count
352353
char **paths; // Filepaths entries
353354
} FilePathList;
@@ -930,7 +931,8 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI
930931
void SetMousePosition(int x, int y); // Set mouse position XY
931932
void SetMouseOffset(int offsetX, int offsetY); // Set mouse offset
932933
void SetMouseScale(float scaleX, float scaleY); // Set mouse scaling
933-
float GetMouseWheelMove(void); // Get mouse wheel movement Y
934+
float GetMouseWheelMove(void); // Get mouse wheel movement for X or Y, whichever is larger
935+
Vector2 GetMouseWheelMoveV(void); // Get mouse wheel movement for both X and Y
934936
void SetMouseCursor(int cursor); // Set mouse cursor
935937
// Input-related functions: touch
936938
int GetTouchX(void); // Get touch position X for touch point 0 (relative to screen size)

raylib/raymath.h.modified

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,11 @@ typedef struct float16 {
6262
// Module Functions Definition - Utils math
6363
//----------------------------------------------------------------------------------
6464
// Clamp float value
65-
inline /* Functions may be inlined or external definition used*/ float Clamp(float value, float min, float max);
66-
//{
67-
// float result = (value < min)? min : value;
68-
//
69-
// if (result > max) result = max;
70-
//
71-
// return result;
72-
//}
73-
// Calculate linear interpolation between two floats
65+
inline /* Functions may be inlined or external definition used*/ float Clamp(float value, float min, float max);// Calculate linear interpolation between two floats
7466
inline /* Functions may be inlined or external definition used*/ float Lerp(float start, float end, float amount);// Normalize input value within input range
7567
inline /* Functions may be inlined or external definition used*/ float Normalize(float value, float start, float end);// Remap input value within input range to output range
76-
inline /* Functions may be inlined or external definition used*/ float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd);// Check whether two given floats are almost equal
68+
inline /* Functions may be inlined or external definition used*/ float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd);// Wrap input value from min to max
69+
inline /* Functions may be inlined or external definition used*/ float Wrap(float value, float min, float max);// Check whether two given floats are almost equal
7770
inline /* Functions may be inlined or external definition used*/ int FloatEquals(float x, float y);//----------------------------------------------------------------------------------
7871
// Module Functions Definition - Vector2 math
7972
//----------------------------------------------------------------------------------

raylib/rlgl.h.modified

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ typedef enum {
427427
unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer); // Load depth texture/renderbuffer (to be attached to fbo)
428428
unsigned int rlLoadTextureCubemap(const void *data, int size, int format); // Load texture cubemap
429429
void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data); // Update GPU texture with new data
430-
void rlGetGlTextureFormats(int format, int *glInternalFormat, int *glFormat, int *glType); // Get OpenGL internal formats
430+
void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType); // Get OpenGL internal formats
431431
const char *rlGetPixelFormatName(unsigned int format); // Get name string for pixel format
432432
void rlUnloadTexture(unsigned int id); // Unload texture from GPU memory
433433
void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps); // Generate mipmap data for selected texture

version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.2.0.0.dev0"
1+
__version__ = "4.2.0.0.dev1"

0 commit comments

Comments
 (0)