Implement text rendering
This commit is contained in:
parent
f6007b90c8
commit
2ed65aa6ae
|
@ -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);
|
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 {
|
pub fn setColor(self: *Self, color: Color) void {
|
||||||
self.color = color;
|
self.color = color;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue