Update raylib to the latest version (#101)
* Update raylib to the latest * Update API --------- Co-authored-by: Not-Nik <nik.wipper@gmx.de>
This commit is contained in:
parent
4d48d3c090
commit
171c2e100c
5 changed files with 34 additions and 16 deletions
|
|
@ -136,6 +136,7 @@ pub extern "c" fn GetWorkingDirectory() [*c]const u8;
|
|||
pub extern "c" fn GetApplicationDirectory() [*c]const u8;
|
||||
pub extern "c" fn ChangeDirectory(dir: [*c]const u8) bool;
|
||||
pub extern "c" fn IsPathFile(path: [*c]const u8) bool;
|
||||
pub extern "c" fn IsFileNameValid(fileName: [*c]const u8) bool;
|
||||
pub extern "c" fn LoadDirectoryFiles(dirPath: [*c]const u8) rl.FilePathList;
|
||||
pub extern "c" fn LoadDirectoryFilesEx(basePath: [*c]const u8, filter: [*c]const u8, scanSubdirs: bool) rl.FilePathList;
|
||||
pub extern "c" fn UnloadDirectoryFiles(files: rl.FilePathList) void;
|
||||
|
|
@ -267,6 +268,7 @@ pub extern "c" fn CheckCollisionPointTriangle(point: rl.Vector2, p1: rl.Vector2,
|
|||
pub extern "c" fn CheckCollisionPointPoly(point: rl.Vector2, points: [*c]rl.Vector2, pointCount: c_int) bool;
|
||||
pub extern "c" fn CheckCollisionLines(startPos1: rl.Vector2, endPos1: rl.Vector2, startPos2: rl.Vector2, endPos2: rl.Vector2, collisionPoint: [*c]rl.Vector2) bool;
|
||||
pub extern "c" fn CheckCollisionPointLine(point: rl.Vector2, p1: rl.Vector2, p2: rl.Vector2, threshold: c_int) bool;
|
||||
pub extern "c" fn CheckCollisionCircleLine(center: rl.Vector2, radius: f32, p1: rl.Vector2, p2: rl.Vector2) bool;
|
||||
pub extern "c" fn GetCollisionRec(rec1: rl.Rectangle, rec2: rl.Rectangle) rl.Rectangle;
|
||||
pub extern "c" fn LoadImage(fileName: [*c]const u8) rl.Image;
|
||||
pub extern "c" fn LoadImageRaw(fileName: [*c]const u8, width: c_int, height: c_int, format: rl.PixelFormat, headerSize: c_int) rl.Image;
|
||||
|
|
@ -422,6 +424,8 @@ pub extern "c" fn TextFindIndex(text: [*c]const u8, find: [*c]const u8) c_int;
|
|||
pub extern "c" fn TextToUpper(text: [*c]const u8) [*c]const u8;
|
||||
pub extern "c" fn TextToLower(text: [*c]const u8) [*c]const u8;
|
||||
pub extern "c" fn TextToPascal(text: [*c]const u8) [*c]const u8;
|
||||
pub extern "c" fn TextToSnake(text: [*c]const u8) [*c]const u8;
|
||||
pub extern "c" fn TextToCamel(text: [*c]const u8) [*c]const u8;
|
||||
pub extern "c" fn TextToInteger(text: [*c]const u8) c_int;
|
||||
pub extern "c" fn TextToFloat(text: [*c]const u8) f32;
|
||||
pub extern "c" fn DrawLine3D(startPos: rl.Vector3, endPos: rl.Vector3, color: rl.Color) void;
|
||||
|
|
@ -524,7 +528,7 @@ pub extern "c" fn SetSoundVolume(sound: rl.Sound, volume: f32) void;
|
|||
pub extern "c" fn SetSoundPitch(sound: rl.Sound, pitch: f32) void;
|
||||
pub extern "c" fn SetSoundPan(sound: rl.Sound, pan: f32) void;
|
||||
pub extern "c" fn WaveCopy(wave: rl.Wave) rl.Wave;
|
||||
pub extern "c" fn WaveCrop(wave: [*c]rl.Wave, initSample: c_int, finalSample: c_int) void;
|
||||
pub extern "c" fn WaveCrop(wave: [*c]rl.Wave, initFrame: c_int, finalFrame: c_int) void;
|
||||
pub extern "c" fn WaveFormat(wave: [*c]rl.Wave, sampleRate: c_int, sampleSize: c_int, channels: c_int) void;
|
||||
pub extern "c" fn LoadWaveSamples(wave: rl.Wave) [*c]f32;
|
||||
pub extern "c" fn UnloadWaveSamples(samples: [*c]f32) void;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue