diff --git a/raylib b/raylib index bec27a6..b54e9db 160000 --- a/raylib +++ b/raylib @@ -1 +1 @@ -Subproject commit bec27a6ebc05e3ff59f69a19ccf8ed268aa5fdd1 +Subproject commit b54e9db7647ae6e5ed86a8a5d92dbd63157c89ac diff --git a/src/raylib.lua b/src/raylib.lua index a092ab7..6f7cd13 100644 --- a/src/raylib.lua +++ b/src/raylib.lua @@ -597,6 +597,7 @@ ffi.cdef [[ BLEND_MULTIPLIED, BLEND_ADD_COLORS, BLEND_SUBTRACT_COLORS, + BLEND_ALPHA_PREMUL, BLEND_CUSTOM } BlendMode; @@ -702,6 +703,7 @@ ffi.cdef [[ RL_BLEND_MULTIPLIED, RL_BLEND_ADD_COLORS, RL_BLEND_SUBTRACT_COLORS, + RL_BLEND_ALPHA_PREMUL, RL_BLEND_CUSTOM } rlBlendMode; diff --git a/tools/api.h b/tools/api.h index a7a48ab..5b2e5fa 100644 --- a/tools/api.h +++ b/tools/api.h @@ -107,6 +107,7 @@ bool SaveFileText(const char *fileName, char *text) bool FileExists(const char *fileName) bool DirectoryExists(const char *dirPath) bool IsFileExtension(const char *fileName, const char *ext) +int GetFileLength(const char *fileName) const char *GetFileExtension(const char *fileName) const char *GetFileName(const char *filePath) const char *GetFileNameWithoutExt(const char *filePath) @@ -333,6 +334,7 @@ void DrawText(const char *text, int posX, int posY, int fontSize, Color color) void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint) +void DrawTextCodepoints(Font font, int *codepoints, int count, Vector2 position, float fontSize, float spacing, Color tint) int MeasureText(const char *text, int fontSize) Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing) int GetGlyphIndex(Font font, int codepoint)