Convert return values

This commit is contained in:
Not-Nik 2023-07-11 18:58:07 +02:00
parent d07552a064
commit 3f046d9db7
Failed to generate hash of commit
10 changed files with 316 additions and 190 deletions

View file

@ -1,6 +1,7 @@
// raylib-zig (c) Nikolas Wipper 2023
const rl = @import("raylib");
const std = @import("std");
pub fn main() anyerror!void {
// Initialization
@ -32,7 +33,8 @@ pub fn main() anyerror!void {
rl.drawRectangle(screenWidth / 2 - 40, @floatToInt(i32, boxPositionY), 80, 80, rl.Color.maroon);
rl.drawText("Use mouse wheel to move the cube up and down!", 10, 10, 20, rl.Color.gray);
//rl.drawText(rl.textFormat("Box position Y: %03i", .{@floatToInt(c_int, boxPositionY)}), 10, 40, 20, rl.Color.light_gray);
rl.drawText(rl.textFormat("Box position Y: %03i", .{@floatToInt(c_int, boxPositionY)}), 10, 40, 20, rl.Color.light_gray);
rl.endDrawing();
//----------------------------------------------------------------------------------