Implement text rendering

This commit is contained in:
Dusk 2023-09-22 12:16:16 +02:00
parent f6007b90c8
commit 2ed65aa6ae
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ pub fn fillRectangleEx(self: *Self, x: i32, y: i32, w: i32, h: i32, skew_x: i32)
rl.drawTriangle(downLeft, downRight, upRight, self.color);
}
pub fn drawText(self: Self, text: [:0]const u8, x: i32, y: i32, size: i32) void {
rl.drawText(text, x, y, size, self.color);
}
pub fn setColor(self: *Self, color: Color) void {
self.color = color;
}