mirror of
https://github.com/Not-Nik/raylib-zig.git
synced 2025-09-09 03:57:29 +00:00
fix examples
This commit is contained in:
parent
528bcf29c5
commit
44e53ff7d1
@ -13,7 +13,7 @@ pub fn main() anyerror!void {
|
||||
defer rl.closeWindow(); // Close window and OpenGL context
|
||||
|
||||
var boxPositionY: f32 = screenHeight / 2 - 40;
|
||||
var scrollSpeed: f32 = 4; // Scrolling speed in pixels
|
||||
const scrollSpeed: f32 = 4; // Scrolling speed in pixels
|
||||
|
||||
rl.setTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
@ -1158,6 +1158,17 @@ pub const LoadFileTextCallback = ?fn ([*c]const u8) callconv(.C) [*c]u8;
|
||||
pub const SaveFileTextCallback = ?fn ([*c]const u8, [*c]u8) callconv(.C) bool;
|
||||
pub const AudioCallback = ?*const fn (?*anyopaque, c_uint) callconv(.C) void;
|
||||
|
||||
pub const AutomationEvent = extern struct {
|
||||
frame: c_uint = @import("std").mem.zeroes(c_uint),
|
||||
type: c_uint = @import("std").mem.zeroes(c_uint),
|
||||
params: [4]c_int = @import("std").mem.zeroes([4]c_int),
|
||||
};
|
||||
pub const AutomationEventList = extern struct {
|
||||
capacity: c_uint = @import("std").mem.zeroes(c_uint),
|
||||
count: c_uint = @import("std").mem.zeroes(c_uint),
|
||||
events: [*c]AutomationEvent = @import("std").mem.zeroes([*c]AutomationEvent),
|
||||
};
|
||||
|
||||
pub const RAYLIB_VERSION_MAJOR = @as(i32, 4);
|
||||
pub const RAYLIB_VERSION_MINOR = @as(i32, 6);
|
||||
pub const RAYLIB_VERSION_PATCH = @as(i32, 0);
|
||||
|
@ -1158,6 +1158,17 @@ pub const LoadFileTextCallback = ?fn ([*c]const u8) callconv(.C) [*c]u8;
|
||||
pub const SaveFileTextCallback = ?fn ([*c]const u8, [*c]u8) callconv(.C) bool;
|
||||
pub const AudioCallback = ?*const fn (?*anyopaque, c_uint) callconv(.C) void;
|
||||
|
||||
pub const AutomationEvent = extern struct {
|
||||
frame: c_uint = @import("std").mem.zeroes(c_uint),
|
||||
type: c_uint = @import("std").mem.zeroes(c_uint),
|
||||
params: [4]c_int = @import("std").mem.zeroes([4]c_int),
|
||||
};
|
||||
pub const AutomationEventList = extern struct {
|
||||
capacity: c_uint = @import("std").mem.zeroes(c_uint),
|
||||
count: c_uint = @import("std").mem.zeroes(c_uint),
|
||||
events: [*c]AutomationEvent = @import("std").mem.zeroes([*c]AutomationEvent),
|
||||
};
|
||||
|
||||
pub const RAYLIB_VERSION_MAJOR = @as(i32, 4);
|
||||
pub const RAYLIB_VERSION_MINOR = @as(i32, 6);
|
||||
pub const RAYLIB_VERSION_PATCH = @as(i32, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user