From bd16e03fbafd3748897467c5450429a223fce6d2 Mon Sep 17 00:00:00 2001 From: TSnake41 Date: Tue, 26 May 2020 21:40:13 +0200 Subject: [PATCH] Update raylib binding, raylua version v3.0d. --- assets/raylib_small.png | Bin 0 -> 1776 bytes raygui | 2 +- raylib | 2 +- src/raylib.lua | 5 +++-- src/raylua.lua | 2 +- tools/api.h | 4 ++-- tools/raymath.h | 2 ++ 7 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 assets/raylib_small.png diff --git a/assets/raylib_small.png b/assets/raylib_small.png new file mode 100644 index 0000000000000000000000000000000000000000..f3a9405e5cc0a8fbc7d6811a2d9e98c1b2ee4e15 GIT binary patch literal 1776 zcmV000B~dQ@0+Qek%> zaB^>EX>4U6ba`-PAZ2)IW&i+q+SONEcI!3_{KqP~1QL7zTn?Y-bO&92htwmsY$r}` zK3XvnC=dd`83>B0|MT~tzi_ZMo_r9EDMo|CC!aWDqGmhNy25N-*Wvdi+~4WxTwtgi zq}y&K@Aet`@bSPA!Au3cJK7fxhi*n@OxkUd(DSCZdnT0nHi=2)Hr2wLtVhcF zan`Sm1FJ>>UGsE1Gk+SXTWu?B46k-PDc>l9a{n*ciTIpF}DES zfqcy9ivBsffX{i?y9<_a#|V?B3pP9le?fc`*qs^i{Q{&sY-c~mXgWsUc9(qwqH(V% zLkBwZ85kBo?$%=wLvRMnWsQWPCYuV%o2jN?RGTaV_d(X%X0si(FIjCxik>?QBy(lA zbn1i?S2ua`bJ)S+l50-ES>;a7LCt3_cEwFAUbTwI&BBx|oK31<4*G2IJA=lk6C!K$ z#0q)wtX!lqnVVNwfe<@(I>G|@7(4yurhZVWU@$D06&uW^Y%WT$AGPHc&klA0a(jg= zN!uL&BE$|z#yT)yqIJPW6a%wZ3mg>$Wn|9Ia{&W31a3%@@n%FOVdWVc&xl>N960h+ zqc?$w;Gz?7lUxQ_-Url=cts86;DQe!#2`T_q>!VFK86^h#M$JsIPnrBiik>*tWLcK zjVh{|G$&3DJusx0Bxy=1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;8yf00000;8~l!7w5J8$6}tV8H@9+I?tuR$Mav7 z0|^0;8UqrXNQ3@TX&xj5K&u#NVaf^s&}j^m raylua " .. raylua.version .. " <") diff --git a/tools/api.h b/tools/api.h index 31157ee..4c25adb 100644 --- a/tools/api.h +++ b/tools/api.h @@ -34,6 +34,7 @@ void HideCursor(void) bool IsCursorHidden(void) void EnableCursor(void) void DisableCursor(void) +bool IsCursorOnScreen(void) void ClearBackground(Color color) void BeginDrawing(void) void EndDrawing(void) @@ -214,7 +215,7 @@ void ImageResizeNN(Image *image, int newWidth,int newHeight) void ImageResizeCanvas(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color color) void ImageMipmaps(Image *image) void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp) -Color *ImageExtractPalette(Image image, int maxPaletteSize, int *extractCount) +Color *GetImagePalette(Image image, int maxPaletteSize, int *extractCount) Image ImageText(const char *text, int fontSize, Color color) Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint) void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint) @@ -424,7 +425,6 @@ void ResumeMusicStream(Music music) bool IsMusicPlaying(Music music) void SetMusicVolume(Music music, float volume) void SetMusicPitch(Music music, float pitch) -void SetMusicLoopCount(Music music, int count) float GetMusicTimeLength(Music music) float GetMusicTimePlayed(Music music) AudioStream InitAudioStream(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels) diff --git a/tools/raymath.h b/tools/raymath.h index 981bffd..e9b5274 100644 --- a/tools/raymath.h +++ b/tools/raymath.h @@ -1,5 +1,7 @@ float Clamp(float value, float min, float max) float Lerp(float start, float end, float amount) +float Normalize(float value, float start, float end) +float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd) Vector2 Vector2Zero(void) Vector2 Vector2One(void) Vector2 Vector2Add(Vector2 v1, Vector2 v2)