diff --git a/.gitmodules b/.gitmodules index 869bb93..a37d003 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,7 +4,7 @@ url = https://github.com/LuaJIT/LuaJIT [submodule "raylib"] path = raylib -url = https://github.com/TSnake41/raylib +url = https://github.com/raysan5/raylib [submodule "raygui"] path = raygui diff --git a/raylib b/raylib index 0d064b7..bec27a6 160000 --- a/raylib +++ b/raylib @@ -1 +1 @@ -Subproject commit 0d064b7808ec197835b13719af323e79f3b35e53 +Subproject commit bec27a6ebc05e3ff59f69a19ccf8ed268aa5fdd1 diff --git a/tools/api.h b/tools/api.h index 5748915..a7a48ab 100644 --- a/tools/api.h +++ b/tools/api.h @@ -21,6 +21,7 @@ void SetWindowPosition(int x, int y) void SetWindowMonitor(int monitor) void SetWindowMinSize(int width, int height) void SetWindowSize(int width, int height) +void SetWindowOpacity(float opacity) void *GetWindowHandle(void) int GetScreenWidth(void) int GetScreenHeight(void) @@ -112,6 +113,7 @@ const char *GetFileNameWithoutExt(const char *filePath) const char *GetDirectoryPath(const char *filePath) const char *GetPrevDirectoryPath(const char *dirPath) const char *GetWorkingDirectory(void) +const char *GetApplicationDirectory(void) char **GetDirectoryFiles(const char *dirPath, int *count) void ClearDirectoryFiles(void) bool ChangeDirectory(const char *dir) @@ -325,6 +327,7 @@ GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSiz Image GenImageFontAtlas(const GlyphInfo *chars, Rectangle **recs, int glyphCount, int fontSize, int padding, int packMethod) void UnloadFontData(GlyphInfo *chars, int glyphCount) void UnloadFont(Font font) +bool ExportFontAsCode(Font font, const char *fileName) void DrawFPS(int posX, int posY) 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) @@ -452,9 +455,10 @@ int GetSoundsPlaying(void) bool IsSoundPlaying(Sound sound) void SetSoundVolume(Sound sound, float volume) void SetSoundPitch(Sound sound, float pitch) -void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels) +void SetSoundPan(Sound sound, float pan) Wave WaveCopy(Wave wave) void WaveCrop(Wave *wave, int initSample, int finalSample) +void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels) float *LoadWaveSamples(Wave wave) void UnloadWaveSamples(float *samples) Music LoadMusicStream(const char *fileName) @@ -468,6 +472,7 @@ void PauseMusicStream(Music music) void ResumeMusicStream(Music music) void SeekMusicStream(Music music, float position) void SetMusicVolume(Music music, float volume) +void SetMusicPan(Music music, float pan) void SetMusicPitch(Music music, float pitch) float GetMusicTimeLength(Music music) float GetMusicTimePlayed(Music music) @@ -482,4 +487,5 @@ bool IsAudioStreamPlaying(AudioStream stream) void StopAudioStream(AudioStream stream) void SetAudioStreamVolume(AudioStream stream, float volume) void SetAudioStreamPitch(AudioStream stream, float pitch) +void SetAudioStreamPan(AudioStream stream, float pan) void SetAudioStreamBufferSizeDefault(int size) \ No newline at end of file diff --git a/tools/raymath.h b/tools/raymath.h index 439d6e9..1fe9086 100644 --- a/tools/raymath.h +++ b/tools/raymath.h @@ -18,6 +18,7 @@ Vector2 Vector2Multiply(Vector2 v1, Vector2 v2) Vector2 Vector2Negate(Vector2 v) Vector2 Vector2Divide(Vector2 v1, Vector2 v2) Vector2 Vector2Normalize(Vector2 v) +Vector2 Vector2Transform(Vector2 v, Matrix mat) Vector2 Vector2Lerp(Vector2 v1, Vector2 v2, float amount) Vector2 Vector2Reflect(Vector2 v, Vector2 normal) Vector2 Vector2Rotate(Vector2 v, float degs)