Update raylib to version 5.5 (#174)
This commit is contained in:
parent
90109ff804
commit
ff775330c7
12 changed files with 677 additions and 201 deletions
|
|
@ -1829,7 +1829,7 @@ pub const ShaderLocationIndex = enum(c_int) {
|
|||
shader_loc_map_brdf = 25,
|
||||
shader_loc_vertex_boneids = 26,
|
||||
shader_loc_vertex_boneweights = 27,
|
||||
shader_loc_bone_matrices = 28
|
||||
shader_loc_bone_matrices = 28,
|
||||
};
|
||||
|
||||
pub const ShaderUniformDataType = enum(c_int) {
|
||||
|
|
@ -1900,7 +1900,6 @@ pub const CubemapLayout = enum(c_int) {
|
|||
cubemap_layout_line_horizontal = 2,
|
||||
cubemap_layout_cross_three_by_four = 3,
|
||||
cubemap_layout_cross_four_by_three = 4,
|
||||
cubemap_layout_panorama = 5,
|
||||
};
|
||||
|
||||
pub const FontType = enum(c_int) {
|
||||
|
|
@ -1963,7 +1962,7 @@ pub const AudioCallback = ?*const fn (?*anyopaque, c_uint) callconv(.C) void;
|
|||
pub const RAYLIB_VERSION_MAJOR = @as(i32, 5);
|
||||
pub const RAYLIB_VERSION_MINOR = @as(i32, 5);
|
||||
pub const RAYLIB_VERSION_PATCH = @as(i32, 0);
|
||||
pub const RAYLIB_VERSION = "5.5-dev";
|
||||
pub const RAYLIB_VERSION = "5.5";
|
||||
|
||||
pub const MAX_TOUCH_POINTS = 10;
|
||||
pub const MAX_MATERIAL_MAPS = 12;
|
||||
|
|
@ -2064,6 +2063,20 @@ pub fn decodeDataBase64(data: []const u8) []u8 {
|
|||
return res;
|
||||
}
|
||||
|
||||
pub fn computeCRC32(data: []u8) u32 {
|
||||
return cdef.ComputeCRC32(data.ptr, data.len);
|
||||
}
|
||||
|
||||
pub fn computeMD5(data: []u8) [4]u32 {
|
||||
const res: [*]c_int = cdef.ComputeMD5(data.ptr, data.len);
|
||||
return res[0..4].*;
|
||||
}
|
||||
|
||||
pub fn computeSHA1(data: []u8) [5]u32 {
|
||||
const res: [*]c_int = cdef.ComputeSHA1(data.ptr, data.len);
|
||||
return res[0..5].*;
|
||||
}
|
||||
|
||||
pub fn loadImageAnimFromMemory(fileType: [*:0]const u8, fileData: []const u8, frames: *i32) Image {
|
||||
return cdef.LoadImageAnimFromMemory(@as([*c]const u8, @ptrCast(fileType)), @as([*c]const u8, @ptrCast(fileData)), @as(c_int, @intCast(fileData.len)), @as([*c]c_int, @ptrCast(frames)));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,14 @@ pub const rlRenderBatch = extern struct {
|
|||
currentDepth: f32,
|
||||
};
|
||||
|
||||
pub const rlGlVersion = enum(c_int) { rl_opengl_11 = 1, rl_opengl_21 = 2, rl_opengl_33 = 3, rl_opengl_43 = 4, rl_opengl_es_20 = 5, rl_opengl_es_30 = 6 };
|
||||
pub const rlGlVersion = enum(c_int) {
|
||||
rl_opengl_11 = 1,
|
||||
rl_opengl_21 = 2,
|
||||
rl_opengl_33 = 3,
|
||||
rl_opengl_43 = 4,
|
||||
rl_opengl_es_20 = 5,
|
||||
rl_opengl_es_30 = 6,
|
||||
};
|
||||
|
||||
pub const rlTraceLogLevel = enum(c_int) {
|
||||
rl_log_all = 0,
|
||||
|
|
@ -143,7 +150,12 @@ pub const rlShaderUniformDataType = enum(c_uint) {
|
|||
rl_shader_uniform_sampler2d = 12,
|
||||
};
|
||||
|
||||
pub const rlShaderAttributeDataType = enum(c_uint) { rl_shader_attrib_float = 0, rl_shader_attrib_vec2 = 1, rl_shader_attrib_vec3 = 2, rl_shader_attrib_vec4 = 3 };
|
||||
pub const rlShaderAttributeDataType = enum(c_uint) {
|
||||
rl_shader_attrib_float = 0,
|
||||
rl_shader_attrib_vec2 = 1,
|
||||
rl_shader_attrib_vec3 = 2,
|
||||
rl_shader_attrib_vec4 = 3,
|
||||
};
|
||||
|
||||
pub const rlFramebufferAttachType = enum(c_uint) {
|
||||
rl_attachment_color_channel0 = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue