diff --git a/README.md b/README.md index e06493b..f78fa94 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Python Bindings for Raylib 4.0.0 +# Python Bindings for Raylib 4.2 New CFFI API static bindings. * Automatically generated to be as close as possible to @@ -6,7 +6,7 @@ original Raylib. * Faster, fewer bugs and easier to maintain than ctypes. * Commercial-friendly license. * Docstrings and auto-completion. -* **Now includes extra libraries: raygui, rlgl and physac** +* **Now includes extra libraries: raymath, raygui, rlgl and physac** [Full documentation](http://electronstudio.github.io/raylib-python-cffi) @@ -71,6 +71,7 @@ Use [the Python API](https://electronstudio.github.io/raylib-python-cffi/pyray.h # App showcase [Tanki](https://github.com/pkulev/tanki) + [Alloy Bloxel Editor](https://pebaz.itch.io/alloy-bloxel-editor) Add your app here! diff --git a/raylib/raylib.h.modified b/raylib/raylib.h.modified index 70e7f32..2ed048a 100644 --- a/raylib/raylib.h.modified +++ b/raylib/raylib.h.modified @@ -348,6 +348,7 @@ typedef struct VrStereoConfig { } VrStereoConfig; // File path list typedef struct FilePathList { + unsigned int capacity; // Filepaths max entries unsigned int count; // Filepaths entries count char **paths; // Filepaths entries } FilePathList; @@ -930,7 +931,8 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI void SetMousePosition(int x, int y); // Set mouse position XY void SetMouseOffset(int offsetX, int offsetY); // Set mouse offset void SetMouseScale(float scaleX, float scaleY); // Set mouse scaling - float GetMouseWheelMove(void); // Get mouse wheel movement Y + float GetMouseWheelMove(void); // Get mouse wheel movement for X or Y, whichever is larger + Vector2 GetMouseWheelMoveV(void); // Get mouse wheel movement for both X and Y void SetMouseCursor(int cursor); // Set mouse cursor // Input-related functions: touch int GetTouchX(void); // Get touch position X for touch point 0 (relative to screen size) diff --git a/raylib/raymath.h.modified b/raylib/raymath.h.modified index d69e742..05f494c 100644 --- a/raylib/raymath.h.modified +++ b/raylib/raymath.h.modified @@ -62,18 +62,11 @@ typedef struct float16 { // Module Functions Definition - Utils math //---------------------------------------------------------------------------------- // Clamp float value -inline /* Functions may be inlined or external definition used*/ float Clamp(float value, float min, float max); -//{ -// float result = (value < min)? min : value; -// -// if (result > max) result = max; -// -// return result; -//} -// Calculate linear interpolation between two floats +inline /* Functions may be inlined or external definition used*/ float Clamp(float value, float min, float max);// Calculate linear interpolation between two floats inline /* Functions may be inlined or external definition used*/ float Lerp(float start, float end, float amount);// Normalize input value within input range 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 -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 +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 +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 inline /* Functions may be inlined or external definition used*/ int FloatEquals(float x, float y);//---------------------------------------------------------------------------------- // Module Functions Definition - Vector2 math //---------------------------------------------------------------------------------- diff --git a/raylib/rlgl.h.modified b/raylib/rlgl.h.modified index 8b338c7..e117fd2 100644 --- a/raylib/rlgl.h.modified +++ b/raylib/rlgl.h.modified @@ -427,7 +427,7 @@ typedef enum { unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer); // Load depth texture/renderbuffer (to be attached to fbo) unsigned int rlLoadTextureCubemap(const void *data, int size, int format); // Load texture cubemap void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data); // Update GPU texture with new data - void rlGetGlTextureFormats(int format, int *glInternalFormat, int *glFormat, int *glType); // Get OpenGL internal formats + void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType); // Get OpenGL internal formats const char *rlGetPixelFormatName(unsigned int format); // Get name string for pixel format void rlUnloadTexture(unsigned int id); // Unload texture from GPU memory void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps); // Generate mipmap data for selected texture diff --git a/version.py b/version.py index a1e7b64..91cf6dc 100644 --- a/version.py +++ b/version.py @@ -1 +1 @@ -__version__ = "4.2.0.0.dev0" \ No newline at end of file +__version__ = "4.2.0.0.dev1" \ No newline at end of file