Update raylib binding, raylua version v3.0d.

This commit is contained in:
TSnake41 2020-05-26 21:40:13 +02:00
parent 06d7c2f2da
commit bd16e03fba
7 changed files with 10 additions and 7 deletions

BIN
assets/raylib_small.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

2
raygui

@ -1 +1 @@
Subproject commit fa8b958a91f63e13ebcfd0ff33b7eaaa2bcefa64
Subproject commit 3e61557f251c5c64ed002081870434e9dbaa7ba7

2
raylib

@ -1 +1 @@
Subproject commit 485d28c43d6de12ddec3eeda2dcd23bd1346e6a5
Subproject commit 4f569813d2906b09edfd97e6617e6900caa4d1bb

View File

@ -249,8 +249,8 @@ ffi.cdef [[
int ctxType;
void *ctxData;
bool looping;
unsigned int sampleCount;
unsigned int loopCount;
AudioStream stream;
} Music;
@ -562,7 +562,8 @@ ffi.cdef [[
typedef enum {
BLEND_ALPHA = 0,
BLEND_ADDITIVE,
BLEND_MULTIPLIED
BLEND_MULTIPLIED,
BLEND_ADD_COLORS
} BlendMode;
typedef enum {

View File

@ -16,7 +16,7 @@
local load = loadstring
raylua.version = "v3.0c"
raylua.version = "v3.0d"
function raylua.repl()
print("> raylua " .. raylua.version .. " <")

View File

@ -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)

View File

@ -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)