Bump raylib to master (#283)

This commit is contained in:
Nikolas 2025-10-09 17:52:36 +02:00
parent 1e257d1738
commit 163b1ef2e9
Failed to generate hash of commit
8 changed files with 211 additions and 73 deletions

View file

@ -39,6 +39,7 @@ pub const rlRenderBatch = extern struct {
};
pub const rlGlVersion = enum(c_int) {
rl_opengl_11_software = 0,
rl_opengl_11 = 1,
rl_opengl_21 = 2,
rl_opengl_33 = 3,
@ -589,6 +590,16 @@ pub fn rlDisablePointMode() void {
cdef.rlDisablePointMode();
}
/// Set the point drawing size
pub fn rlSetPointSize(size: f32) void {
cdef.rlSetPointSize(size);
}
/// Get the point drawing size
pub fn rlGetPointSize() f32 {
return cdef.rlGetPointSize();
}
/// Enable wire mode
pub fn rlEnableWireMode() void {
cdef.rlEnableWireMode();
@ -899,6 +910,16 @@ pub fn rlUnloadFramebuffer(id: u32) void {
cdef.rlUnloadFramebuffer(@as(c_uint, id));
}
/// Copy framebuffer pixel data to internal buffer
pub fn rlCopyFramebuffer(x: i32, y: i32, width: i32, height: i32, format: i32, pixels: *anyopaque) void {
cdef.rlCopyFramebuffer(@as(c_int, x), @as(c_int, y), @as(c_int, width), @as(c_int, height), @as(c_int, format), pixels);
}
/// Resize internal framebuffer
pub fn rlResizeFramebuffer(width: i32, height: i32) void {
cdef.rlResizeFramebuffer(@as(c_int, width), @as(c_int, height));
}
/// Load shader from code strings
pub fn rlLoadShaderCode(vsCode: [:0]const u8, fsCode: [:0]const u8) u32 {
return @as(u32, cdef.rlLoadShaderCode(@as([*c]const u8, @ptrCast(vsCode)), @as([*c]const u8, @ptrCast(fsCode))));