various fixes

This commit is contained in:
johan0A 2024-09-23 00:09:06 +02:00
parent fef7b8e417
commit 904b915d31
3 changed files with 18 additions and 15 deletions

View file

@ -3,8 +3,7 @@
.version = "0.0.0",
.dependencies = .{
.zclay = .{
.url = "../../",
.hash = "1220d6ec9e404578dd1484fd60b767f1c91906c0cc19a86c4089a36c6366aa193fef",
.path = "../../",
},
.@"raylib-zig" = .{
.url = "https://github.com/Not-Nik/raylib-zig/archive/f26b2ab084be5e2840b7451818590cc512b7b972.tar.gz",

View file

@ -114,7 +114,7 @@ pub fn main() anyerror!void {
.window_highdpi = true,
.window_resizable = true,
});
rl.initWindow(1000, 1000, "Raylib Odin Example");
rl.initWindow(1000, 1000, "Raylib zig Example");
rl.setTargetFPS(60);
// loadFont(@embedFile("./resources/Roboto-Regular.ttf"), 0, 100);
@ -131,8 +131,8 @@ pub fn main() anyerror!void {
const mouse_pos = rl.getMousePosition();
cl.setPointerState(.{
mouse_pos.x,
mouse_pos.y,
.x = mouse_pos.x,
.y = mouse_pos.y,
}, rl.isMouseButtonDown(.mouse_button_left));
cl.setLayoutDimensions(.{