This commit is contained in:
Dusk 2023-09-22 20:59:55 +02:00
parent fb9968c19f
commit 74cd3f5127
2 changed files with 7 additions and 1 deletions

View File

@ -10,7 +10,7 @@ const max_objects: usize = 16384;
const quadSize: usize = 9 * 6;
pub fn init() !Self {
rl.initWindow(1280, 720, "USG", 60);
rl.initWindow(1280, 720, "USG", 120);
var renderer = Self{};
@ -24,6 +24,8 @@ pub fn render(self: *Self) void {
rl.beginDrawing();
rl.clearBackground(.{ 232, 216, 166, 255 });
rl.drawFPS(10, 10);
}
pub fn deinit(self: *Self) void {

View File

@ -77,3 +77,7 @@ pub fn getScreenHeight() i32 {
pub fn getTime() f64 {
return c.GetTime();
}
pub fn drawFPS(x: i32, y: i32) void {
c.DrawFPS(x, y);
}