mirror of
https://github.com/Not-Nik/raylib-zig.git
synced 2025-09-09 12:07:27 +00:00
macosx not in zig 0.7 build
extern fn GetTime() uses f64
This commit is contained in:
parent
9da413709c
commit
3d19112b2a
2
lib.zig
2
lib.zig
@ -29,7 +29,7 @@ pub fn Pkg(pkgdir: comptime []const u8) type {
|
||||
exe.addIncludeDir(pkgdir ++ "/raylib/src/external/glfw/deps/mingw");
|
||||
exe.addCSourceFile(pkgdir ++ "/raylib/src/rglfw.c", raylibFlags);
|
||||
},
|
||||
.macosx => {
|
||||
.macos => {
|
||||
std.debug.warn("Compiling raylib is unsupported on macOS. Please add '-Dsystem-raylib=true' to your build command to use your system raylib.\n", .{});
|
||||
std.os.exit(1);
|
||||
},
|
||||
|
@ -55,7 +55,7 @@ pub extern fn GetScreenToWorld2D(position: Vector2, camera: Camera2D) Vector2;
|
||||
pub extern fn SetTargetFPS(fps: c_int) void;
|
||||
pub extern fn GetFPS() c_int;
|
||||
pub extern fn GetFrameTime() f32;
|
||||
pub extern fn GetTime() double;
|
||||
pub extern fn GetTime() f64;
|
||||
pub extern fn ColorToInt(color: Color) c_int;
|
||||
pub extern fn ColorNormalize(color: Color) Vector4;
|
||||
pub extern fn ColorFromNormalized(normalized: Vector4) Color;
|
||||
|
Loading…
x
Reference in New Issue
Block a user