28 lines
452 B
Zig
28 lines
452 B
Zig
const std = @import("std");
|
|
|
|
pub const Rect = struct {
|
|
x: i32,
|
|
y: i32,
|
|
w: i32,
|
|
h: i32,
|
|
};
|
|
|
|
pub fn init() void {
|
|
// TODO: Init VirtIO GPU or PL111
|
|
}
|
|
|
|
pub fn set_clip(r: Rect) void {
|
|
// TODO: Set scissoring
|
|
_ = r;
|
|
}
|
|
|
|
pub fn fill_rect(x: i32, y: i32, w: i32, h: i32, color: u32) void {
|
|
// TODO: Plot to framebuffer
|
|
// For now, valid compilation is the goal.
|
|
_ = x;
|
|
_ = y;
|
|
_ = w;
|
|
_ = h;
|
|
_ = color;
|
|
}
|