Remove test cell in main menu

This commit is contained in:
Dendy 2023-09-30 15:47:39 +02:00
parent c2786fdceb
commit 2b4dbc2875
1 changed files with 2 additions and 9 deletions

View File

@ -5,7 +5,6 @@ const Self = @This();
const colors = @import("color.zig"); const colors = @import("color.zig");
color: colors.Color = .{ 0, 0, 0, 0 }, color: colors.Color = .{ 0, 0, 0, 0 },
textureTest: Texture,
const max_objects: usize = 16384; const max_objects: usize = 16384;
const quadSize: usize = 9 * 6; const quadSize: usize = 9 * 6;
@ -13,17 +12,11 @@ const quadSize: usize = 9 * 6;
pub fn init() !Self { pub fn init() !Self {
rl.initWindow(1280, 720, "USG", 120); rl.initWindow(1280, 720, "USG", 120);
var renderer = Self{ return Self{};
.textureTest = Texture.init("res/cell.png"),
};
return renderer;
} }
pub fn render(self: *Self) void { pub fn render(self: *Self) void {
//_ = self; _ = self;
self.textureTest.drawTo(20, 100, 160, 160, colors.pink);
rl.drawFPS(10, 10); rl.drawFPS(10, 10);
rl.endDrawing(); rl.endDrawing();