mirror of
https://github.com/raylib-zig/raylib-zig.git
synced 2025-12-16 03:03:13 +00:00
Update to raylib head
This commit is contained in:
parent
0d4cc3ac8c
commit
79ee589441
@ -703,7 +703,13 @@ pub const Model = extern struct {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const ModelAnimation = extern struct { boneCount: c_int, frameCount: c_int, bones: [*c]BoneInfo, framePoses: [*c][*c]Transform, name: [32]u8 };
|
pub const ModelAnimation = extern struct {
|
||||||
|
boneCount: c_int,
|
||||||
|
frameCount: c_int,
|
||||||
|
bones: [*c]BoneInfo,
|
||||||
|
framePoses: [*c][*c]Transform,
|
||||||
|
name: [32]u8,
|
||||||
|
};
|
||||||
|
|
||||||
pub const Ray = extern struct {
|
pub const Ray = extern struct {
|
||||||
position: Vector3,
|
position: Vector3,
|
||||||
@ -799,6 +805,7 @@ pub const ConfigFlags = enum(c_int) {
|
|||||||
flag_window_topmost = 4096,
|
flag_window_topmost = 4096,
|
||||||
flag_window_highdpi = 8192,
|
flag_window_highdpi = 8192,
|
||||||
flag_window_mouse_passthrough = 16384,
|
flag_window_mouse_passthrough = 16384,
|
||||||
|
flag_borderless_windowed_mode = 32768,
|
||||||
flag_interlaced_hint = 65536,
|
flag_interlaced_hint = 65536,
|
||||||
_,
|
_,
|
||||||
};
|
};
|
||||||
|
|||||||
@ -16,6 +16,7 @@ pub extern "c" fn IsWindowState(flag: c_uint) bool;
|
|||||||
pub extern "c" fn SetWindowState(flags: rl.ConfigFlags) void;
|
pub extern "c" fn SetWindowState(flags: rl.ConfigFlags) void;
|
||||||
pub extern "c" fn ClearWindowState(flags: rl.ConfigFlags) void;
|
pub extern "c" fn ClearWindowState(flags: rl.ConfigFlags) void;
|
||||||
pub extern "c" fn ToggleFullscreen() void;
|
pub extern "c" fn ToggleFullscreen() void;
|
||||||
|
pub extern "c" fn ToggleBorderlessWindowed() void;
|
||||||
pub extern "c" fn MaximizeWindow() void;
|
pub extern "c" fn MaximizeWindow() void;
|
||||||
pub extern "c" fn MinimizeWindow() void;
|
pub extern "c" fn MinimizeWindow() void;
|
||||||
pub extern "c" fn RestoreWindow() void;
|
pub extern "c" fn RestoreWindow() void;
|
||||||
@ -468,10 +469,12 @@ pub extern "c" fn LoadWaveFromMemory(fileType: [*c]const u8, fileData: [*c]const
|
|||||||
pub extern "c" fn IsWaveReady(wave: rl.Wave) bool;
|
pub extern "c" fn IsWaveReady(wave: rl.Wave) bool;
|
||||||
pub extern "c" fn LoadSound(fileName: [*c]const u8) rl.Sound;
|
pub extern "c" fn LoadSound(fileName: [*c]const u8) rl.Sound;
|
||||||
pub extern "c" fn LoadSoundFromWave(wave: rl.Wave) rl.Sound;
|
pub extern "c" fn LoadSoundFromWave(wave: rl.Wave) rl.Sound;
|
||||||
|
pub extern "c" fn LoadSoundAlias(source: rl.Sound) rl.Sound;
|
||||||
pub extern "c" fn IsSoundReady(sound: rl.Sound) bool;
|
pub extern "c" fn IsSoundReady(sound: rl.Sound) bool;
|
||||||
pub extern "c" fn UpdateSound(sound: rl.Sound, data: *const anyopaque, sampleCount: c_int) void;
|
pub extern "c" fn UpdateSound(sound: rl.Sound, data: *const anyopaque, sampleCount: c_int) void;
|
||||||
pub extern "c" fn UnloadWave(wave: rl.Wave) void;
|
pub extern "c" fn UnloadWave(wave: rl.Wave) void;
|
||||||
pub extern "c" fn UnloadSound(sound: rl.Sound) void;
|
pub extern "c" fn UnloadSound(sound: rl.Sound) void;
|
||||||
|
pub extern "c" fn UnloadSoundAlias(alias: rl.Sound) void;
|
||||||
pub extern "c" fn ExportWave(wave: rl.Wave, fileName: [*c]const u8) bool;
|
pub extern "c" fn ExportWave(wave: rl.Wave, fileName: [*c]const u8) bool;
|
||||||
pub extern "c" fn ExportWaveAsCode(wave: rl.Wave, fileName: [*c]const u8) bool;
|
pub extern "c" fn ExportWaveAsCode(wave: rl.Wave, fileName: [*c]const u8) bool;
|
||||||
pub extern "c" fn PlaySound(sound: rl.Sound) void;
|
pub extern "c" fn PlaySound(sound: rl.Sound) void;
|
||||||
|
|||||||
@ -703,7 +703,13 @@ pub const Model = extern struct {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const ModelAnimation = extern struct { boneCount: c_int, frameCount: c_int, bones: [*c]BoneInfo, framePoses: [*c][*c]Transform, name: [32]u8 };
|
pub const ModelAnimation = extern struct {
|
||||||
|
boneCount: c_int,
|
||||||
|
frameCount: c_int,
|
||||||
|
bones: [*c]BoneInfo,
|
||||||
|
framePoses: [*c][*c]Transform,
|
||||||
|
name: [32]u8,
|
||||||
|
};
|
||||||
|
|
||||||
pub const Ray = extern struct {
|
pub const Ray = extern struct {
|
||||||
position: Vector3,
|
position: Vector3,
|
||||||
@ -799,6 +805,7 @@ pub const ConfigFlags = enum(c_int) {
|
|||||||
flag_window_topmost = 4096,
|
flag_window_topmost = 4096,
|
||||||
flag_window_highdpi = 8192,
|
flag_window_highdpi = 8192,
|
||||||
flag_window_mouse_passthrough = 16384,
|
flag_window_mouse_passthrough = 16384,
|
||||||
|
flag_borderless_windowed_mode = 32768,
|
||||||
flag_interlaced_hint = 65536,
|
flag_interlaced_hint = 65536,
|
||||||
_,
|
_,
|
||||||
};
|
};
|
||||||
@ -1395,6 +1402,10 @@ pub fn toggleFullscreen() void {
|
|||||||
cdef.ToggleFullscreen();
|
cdef.ToggleFullscreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn toggleBorderlessWindowed() void {
|
||||||
|
cdef.ToggleBorderlessWindowed();
|
||||||
|
}
|
||||||
|
|
||||||
pub fn maximizeWindow() void {
|
pub fn maximizeWindow() void {
|
||||||
cdef.MaximizeWindow();
|
cdef.MaximizeWindow();
|
||||||
}
|
}
|
||||||
@ -3111,6 +3122,10 @@ pub fn loadSoundFromWave(wave: Wave) Sound {
|
|||||||
return cdef.LoadSoundFromWave(wave);
|
return cdef.LoadSoundFromWave(wave);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn loadSoundAlias(source: Sound) Sound {
|
||||||
|
return cdef.LoadSoundAlias(source);
|
||||||
|
}
|
||||||
|
|
||||||
pub fn isSoundReady(sound: Sound) bool {
|
pub fn isSoundReady(sound: Sound) bool {
|
||||||
return cdef.IsSoundReady(sound);
|
return cdef.IsSoundReady(sound);
|
||||||
}
|
}
|
||||||
@ -3127,6 +3142,10 @@ pub fn unloadSound(sound: Sound) void {
|
|||||||
cdef.UnloadSound(sound);
|
cdef.UnloadSound(sound);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn unloadSoundAlias(alias: Sound) void {
|
||||||
|
cdef.UnloadSoundAlias(alias);
|
||||||
|
}
|
||||||
|
|
||||||
pub fn exportWave(wave: Wave, fileName: [:0]const u8) bool {
|
pub fn exportWave(wave: Wave, fileName: [:0]const u8) bool {
|
||||||
return cdef.ExportWave(wave, @as([*c]const u8, @ptrCast(fileName)));
|
return cdef.ExportWave(wave, @as([*c]const u8, @ptrCast(fileName)));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user