From 30433e3f14dca63cc28b17340575d15d72ef60bc Mon Sep 17 00:00:00 2001 From: TSnake41 Date: Thu, 25 Jun 2020 17:25:59 +0200 Subject: [PATCH] Update raylib binding. --- raylib | 2 +- tools/api.h | 2 ++ tools/rlgl.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/raylib b/raylib index 4f56981..a2a120b 160000 --- a/raylib +++ b/raylib @@ -1 +1 @@ -Subproject commit 4f569813d2906b09edfd97e6617e6900caa4d1bb +Subproject commit a2a120bd63ecf622bf27678f3fb72f6bc0c4b42b diff --git a/tools/api.h b/tools/api.h index 4c25adb..146acf6 100644 --- a/tools/api.h +++ b/tools/api.h @@ -24,6 +24,7 @@ int GetMonitorWidth(int monitor) int GetMonitorHeight(int monitor) int GetMonitorPhysicalWidth(int monitor) int GetMonitorPhysicalHeight(int monitor) +int GetMonitorRefreshRate(int monitor) Vector2 GetWindowPosition(void) Vector2 GetWindowScaleDPI(void) const char *GetMonitorName(int monitor) @@ -201,6 +202,7 @@ int GetPixelDataSize(int width, int height, int format) Image GetTextureData(Texture2D texture) Image GetScreenData(void) void UpdateTexture(Texture2D texture, const void *pixels) +void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels) Image ImageCopy(Image image) Image ImageFromImage(Image image, Rectangle rec) void ImageToPOT(Image *image, Color fillColor) diff --git a/tools/rlgl.h b/tools/rlgl.h index 4b378d7..f301f89 100644 --- a/tools/rlgl.h +++ b/tools/rlgl.h @@ -53,7 +53,7 @@ Vector3 rlUnproject(Vector3 source, Matrix proj, Matrix view) unsigned int rlLoadTexture(void *data, int width, int height, int format, int mipmapCount) unsigned int rlLoadTextureDepth(int width, int height, int bits, bool useRenderBuffer) unsigned int rlLoadTextureCubemap(void *data, int size, int format) -void rlUpdateTexture(unsigned int id, int width, int height, int format, const void *data) +void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data) void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType) void rlUnloadTexture(unsigned int id) void rlGenerateMipmaps(Texture2D *texture)