mirror of
https://github.com/Not-Nik/raylib-zig.git
synced 2025-09-08 19:47:28 +00:00
raylib/raymath/rlgl/raygui: Expose cdef (#152)
This commit is contained in:
parent
855ab9cd70
commit
01b6e1a2e2
@ -1,14 +1,13 @@
|
||||
const rl = @import("raylib-zig");
|
||||
const std = @import("std");
|
||||
const cdef = @import("raygui-ext.zig");
|
||||
|
||||
pub const cdef = @import("raygui-ext.zig");
|
||||
|
||||
test {
|
||||
std.testing.refAllDeclsRecursive(@This());
|
||||
}
|
||||
|
||||
pub const RayguiError = error{
|
||||
GetIcons
|
||||
};
|
||||
pub const RayguiError = error{GetIcons};
|
||||
|
||||
const Vector2 = rl.Vector2;
|
||||
const Vector3 = rl.Vector3;
|
||||
|
@ -3,6 +3,8 @@
|
||||
const rl = @This();
|
||||
const std = @import("std");
|
||||
|
||||
pub const cdef = @import("raylib-ext.zig");
|
||||
|
||||
pub const gl = @import("rlgl.zig");
|
||||
pub const math = @import("raymath.zig");
|
||||
|
||||
@ -1969,8 +1971,6 @@ pub const MATERIAL_MAP_SPECULAR = MaterialMapIndex.material_map_metalness;
|
||||
pub const SHADER_LOC_MAP_DIFFUSE = ShaderLocationIndex.shader_loc_map_albedo;
|
||||
pub const SHADER_LOC_MAP_SPECULAR = ShaderLocationIndex.shader_loc_map_metalness;
|
||||
|
||||
const cdef = @import("raylib-ext.zig");
|
||||
|
||||
/// Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)
|
||||
pub fn setWindowIcons(images: []Image) void {
|
||||
cdef.SetWindowIcons(@as([*c]Image, @ptrCast(images)), @as(c_int, @intCast(images.len)));
|
||||
|
@ -1,9 +1,10 @@
|
||||
// raylib-zig (c) Nikolas Wipper 2023
|
||||
|
||||
const rl = @import("raylib.zig");
|
||||
const cdef = @import("raymath-ext.zig");
|
||||
const std = @import("std");
|
||||
|
||||
pub const cdef = @import("raymath-ext.zig");
|
||||
|
||||
test {
|
||||
std.testing.refAllDeclsRecursive(@This());
|
||||
}
|
||||
|
@ -1,9 +1,10 @@
|
||||
// raylib-zig (c) Nikolas Wipper 2024
|
||||
|
||||
const rl = @import("raylib.zig");
|
||||
const cdef = @import("rlgl-ext.zig");
|
||||
const std = @import("std");
|
||||
|
||||
pub const cdef = @import("rlgl-ext.zig");
|
||||
|
||||
test {
|
||||
std.testing.refAllDeclsRecursive(@This());
|
||||
}
|
||||
|
@ -1,14 +1,13 @@
|
||||
const rl = @import("raylib-zig");
|
||||
const std = @import("std");
|
||||
const cdef = @import("raygui-ext.zig");
|
||||
|
||||
pub const cdef = @import("raygui-ext.zig");
|
||||
|
||||
test {
|
||||
std.testing.refAllDeclsRecursive(@This());
|
||||
}
|
||||
|
||||
pub const RayguiError = error{
|
||||
GetIcons
|
||||
};
|
||||
pub const RayguiError = error{GetIcons};
|
||||
|
||||
const Vector2 = rl.Vector2;
|
||||
const Vector3 = rl.Vector3;
|
||||
|
@ -3,6 +3,8 @@
|
||||
const rl = @This();
|
||||
const std = @import("std");
|
||||
|
||||
pub const cdef = @import("raylib-ext.zig");
|
||||
|
||||
pub const gl = @import("rlgl.zig");
|
||||
pub const math = @import("raymath.zig");
|
||||
|
||||
@ -1969,8 +1971,6 @@ pub const MATERIAL_MAP_SPECULAR = MaterialMapIndex.material_map_metalness;
|
||||
pub const SHADER_LOC_MAP_DIFFUSE = ShaderLocationIndex.shader_loc_map_albedo;
|
||||
pub const SHADER_LOC_MAP_SPECULAR = ShaderLocationIndex.shader_loc_map_metalness;
|
||||
|
||||
const cdef = @import("raylib-ext.zig");
|
||||
|
||||
/// Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)
|
||||
pub fn setWindowIcons(images: []Image) void {
|
||||
cdef.SetWindowIcons(@as([*c]Image, @ptrCast(images)), @as(c_int, @intCast(images.len)));
|
||||
|
@ -1,9 +1,10 @@
|
||||
// raylib-zig (c) Nikolas Wipper 2023
|
||||
|
||||
const rl = @import("raylib.zig");
|
||||
const cdef = @import("raymath-ext.zig");
|
||||
const std = @import("std");
|
||||
|
||||
pub const cdef = @import("raymath-ext.zig");
|
||||
|
||||
test {
|
||||
std.testing.refAllDeclsRecursive(@This());
|
||||
}
|
||||
|
@ -1,9 +1,10 @@
|
||||
// raylib-zig (c) Nikolas Wipper 2024
|
||||
|
||||
const rl = @import("raylib.zig");
|
||||
const cdef = @import("rlgl-ext.zig");
|
||||
const std = @import("std");
|
||||
|
||||
pub const cdef = @import("rlgl-ext.zig");
|
||||
|
||||
test {
|
||||
std.testing.refAllDeclsRecursive(@This());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user