1
0
Fork 0
forked from AbleOS/ableos
ableos/sysdata/libraries/render/src/svga.hb

78 lines
1.2 KiB
Plaintext
Raw Normal View History

.{Vec2} := @use("../../stn/src/lib.hb").math;
.{Image, Color} := @use("lib.hb")
2024-09-13 16:41:31 -05:00
clear := fn(color: Color): void {
return
}
width := fn(): int {
return 0
}
height := fn(): int {
return 0
}
2024-10-12 15:39:09 -05:00
dimensions := fn(): Vec2(int) {
2024-09-13 16:41:31 -05:00
return .(0, 0)
}
2024-10-12 15:39:09 -05:00
put_pixel := fn(position: Vec2(int), color: Color): void {
2024-09-13 16:41:31 -05:00
return
}
2024-10-12 15:39:09 -05:00
put_filled_rect := fn(pos: Vec2(int), tr: Vec2(int), color: Color): void {
2024-09-13 16:41:31 -05:00
return
}
2024-10-12 15:39:09 -05:00
put_rect := fn(pos: Vec2(int), tr: Vec2(int), color: Color): void {
2024-09-13 16:41:31 -05:00
return
}
2024-10-12 15:39:09 -05:00
put_line_low := fn(p0: Vec2(int), p1: Vec2(int), color: Color): void {
2024-09-13 16:41:31 -05:00
return
}
// do not use, use line() instead
2024-10-12 15:39:09 -05:00
put_line_high := fn(p0: Vec2(int), p1: Vec2(int), color: Color): void {
2024-09-13 16:41:31 -05:00
return
}
2024-10-12 15:39:09 -05:00
put_line := fn(p0: Vec2(int), p1: Vec2(int), color: Color): void {
2024-09-13 16:41:31 -05:00
return
}
set_height := fn(new: int): void {
return
}
set_width := fn(new: int): void {
return
}
2024-10-12 15:39:09 -05:00
set_dimensions := fn(new: Vec2(int)): void {
2024-09-13 16:41:31 -05:00
return
}
sync := fn(): void {
return
}
init := fn(): void {
return
2024-10-12 15:39:09 -05:00
}
put_image := fn(img: Image, pos: Vec2(int)): void {
return
}
put_trirect := fn(pos: Vec2(int), size: Vec2(int), color0: Color, color1: Color): void {
return
}
put_vline := fn(x: int, y0: int, y1: int, color: Color): void {
return
}
put_hline := fn(y: int, x0: int, x1: int, color: Color): void {
2024-10-12 15:39:09 -05:00
return
2024-09-13 16:41:31 -05:00
}