Update binding

This commit is contained in:
Astie Teddy 2022-01-18 11:11:58 +01:00
parent 035703b769
commit b5247f7b61
4 changed files with 10 additions and 3 deletions

2
.gitmodules vendored
View File

@ -4,7 +4,7 @@ url = https://github.com/LuaJIT/LuaJIT
[submodule "raylib"] [submodule "raylib"]
path = raylib path = raylib
url = https://github.com/TSnake41/raylib url = https://github.com/raysan5/raylib
[submodule "raygui"] [submodule "raygui"]
path = raygui path = raygui

2
raylib

@ -1 +1 @@
Subproject commit 0d064b7808ec197835b13719af323e79f3b35e53 Subproject commit bec27a6ebc05e3ff59f69a19ccf8ed268aa5fdd1

View File

@ -21,6 +21,7 @@ void SetWindowPosition(int x, int y)
void SetWindowMonitor(int monitor) void SetWindowMonitor(int monitor)
void SetWindowMinSize(int width, int height) void SetWindowMinSize(int width, int height)
void SetWindowSize(int width, int height) void SetWindowSize(int width, int height)
void SetWindowOpacity(float opacity)
void *GetWindowHandle(void) void *GetWindowHandle(void)
int GetScreenWidth(void) int GetScreenWidth(void)
int GetScreenHeight(void) int GetScreenHeight(void)
@ -112,6 +113,7 @@ const char *GetFileNameWithoutExt(const char *filePath)
const char *GetDirectoryPath(const char *filePath) const char *GetDirectoryPath(const char *filePath)
const char *GetPrevDirectoryPath(const char *dirPath) const char *GetPrevDirectoryPath(const char *dirPath)
const char *GetWorkingDirectory(void) const char *GetWorkingDirectory(void)
const char *GetApplicationDirectory(void)
char **GetDirectoryFiles(const char *dirPath, int *count) char **GetDirectoryFiles(const char *dirPath, int *count)
void ClearDirectoryFiles(void) void ClearDirectoryFiles(void)
bool ChangeDirectory(const char *dir) 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) Image GenImageFontAtlas(const GlyphInfo *chars, Rectangle **recs, int glyphCount, int fontSize, int padding, int packMethod)
void UnloadFontData(GlyphInfo *chars, int glyphCount) void UnloadFontData(GlyphInfo *chars, int glyphCount)
void UnloadFont(Font font) void UnloadFont(Font font)
bool ExportFontAsCode(Font font, const char *fileName)
void DrawFPS(int posX, int posY) void DrawFPS(int posX, int posY)
void DrawText(const char *text, int posX, int posY, int fontSize, Color color) 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 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) bool IsSoundPlaying(Sound sound)
void SetSoundVolume(Sound sound, float volume) void SetSoundVolume(Sound sound, float volume)
void SetSoundPitch(Sound sound, float pitch) 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) Wave WaveCopy(Wave wave)
void WaveCrop(Wave *wave, int initSample, int finalSample) void WaveCrop(Wave *wave, int initSample, int finalSample)
void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels)
float *LoadWaveSamples(Wave wave) float *LoadWaveSamples(Wave wave)
void UnloadWaveSamples(float *samples) void UnloadWaveSamples(float *samples)
Music LoadMusicStream(const char *fileName) Music LoadMusicStream(const char *fileName)
@ -468,6 +472,7 @@ void PauseMusicStream(Music music)
void ResumeMusicStream(Music music) void ResumeMusicStream(Music music)
void SeekMusicStream(Music music, float position) void SeekMusicStream(Music music, float position)
void SetMusicVolume(Music music, float volume) void SetMusicVolume(Music music, float volume)
void SetMusicPan(Music music, float pan)
void SetMusicPitch(Music music, float pitch) void SetMusicPitch(Music music, float pitch)
float GetMusicTimeLength(Music music) float GetMusicTimeLength(Music music)
float GetMusicTimePlayed(Music music) float GetMusicTimePlayed(Music music)
@ -482,4 +487,5 @@ bool IsAudioStreamPlaying(AudioStream stream)
void StopAudioStream(AudioStream stream) void StopAudioStream(AudioStream stream)
void SetAudioStreamVolume(AudioStream stream, float volume) void SetAudioStreamVolume(AudioStream stream, float volume)
void SetAudioStreamPitch(AudioStream stream, float pitch) void SetAudioStreamPitch(AudioStream stream, float pitch)
void SetAudioStreamPan(AudioStream stream, float pan)
void SetAudioStreamBufferSizeDefault(int size) void SetAudioStreamBufferSizeDefault(int size)

View File

@ -18,6 +18,7 @@ Vector2 Vector2Multiply(Vector2 v1, Vector2 v2)
Vector2 Vector2Negate(Vector2 v) Vector2 Vector2Negate(Vector2 v)
Vector2 Vector2Divide(Vector2 v1, Vector2 v2) Vector2 Vector2Divide(Vector2 v1, Vector2 v2)
Vector2 Vector2Normalize(Vector2 v) Vector2 Vector2Normalize(Vector2 v)
Vector2 Vector2Transform(Vector2 v, Matrix mat)
Vector2 Vector2Lerp(Vector2 v1, Vector2 v2, float amount) Vector2 Vector2Lerp(Vector2 v1, Vector2 v2, float amount)
Vector2 Vector2Reflect(Vector2 v, Vector2 normal) Vector2 Vector2Reflect(Vector2 v, Vector2 normal)
Vector2 Vector2Rotate(Vector2 v, float degs) Vector2 Vector2Rotate(Vector2 v, float degs)