ableos/sysdata/libraries/render/src/lib.hb

50 lines
1,010 B
Plaintext
Raw Normal View History

2024-09-18 03:38:49 -05:00
svga := @use("svga.hb")
software := @use("software.hb")
2024-09-13 16:41:31 -05:00
// default mode
mode := software
init := mode.init
doublebuffer := mode.doublebuffer
// Colours
Color := mode.Color
white := mode.white
black := mode.black
gray := mode.gray
red := mode.red
green := mode.green
yellow := mode.yellow
blue := mode.blue
magenta := mode.magenta
cyan := mode.cyan
light_gray := mode.light_gray
light_red := mode.light_red
light_green := mode.light_green
light_yellow := mode.light_yellow
light_blue := mode.light_blue
light_magenta := mode.light_magenta
light_cyan := mode.light_cyan
// Drawing
put_pixel := mode.put_pixel
put_rect := mode.put_rect
put_filled_rect := mode.put_filled_rect
put_line := mode.put_line
clear := mode.clear
2024-10-12 15:39:09 -05:00
put_img := mode.put_img
2024-09-13 16:41:31 -05:00
// Display
width := mode.width
height := mode.height
dimensions := mode.dimensions
set_height := mode.set_height
set_width := mode.set_width
set_dimensions := mode.set_dimensions
sync := mode.sync
2024-10-12 15:39:09 -05:00
// Trash Image
Image := struct {
start: ^Color,
end: ^Color,
}