Add color rendering
This commit is contained in:
parent
d88ef81a02
commit
f6007b90c8
src
|
@ -63,12 +63,8 @@ pub fn fillRectangleEx(self: *Self, x: i32, y: i32, w: i32, h: i32, skew_x: i32)
|
||||||
const downLeft = [_]f32{ xf - skew_x_offset, yf + hf };
|
const downLeft = [_]f32{ xf - skew_x_offset, yf + hf };
|
||||||
const downRight = [_]f32{ xf + wf - skew_x_offset, yf + hf };
|
const downRight = [_]f32{ xf + wf - skew_x_offset, yf + hf };
|
||||||
|
|
||||||
const color = Color{0,0,0,255};
|
rl.drawTriangle(upLeft, downLeft, upRight, self.color);
|
||||||
|
rl.drawTriangle(downLeft, downRight, upRight, self.color);
|
||||||
_ = self;
|
|
||||||
|
|
||||||
rl.drawTriangle(upLeft, downLeft, upRight, color);
|
|
||||||
rl.drawTriangle(downLeft, downRight, upRight, color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn setColor(self: *Self, color: Color) void {
|
pub fn setColor(self: *Self, color: Color) void {
|
||||||
|
|
Loading…
Reference in New Issue