forked from AbleOS/ableos
47 lines
1,005 B
Plaintext
47 lines
1,005 B
Plaintext
|
svga := @use("rel:svga.hb")
|
||
|
software := @use("rel:software.hb")
|
||
|
|
||
|
// 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
|
||
|
|
||
|
// 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
|
||
|
|
||
|
// Math
|
||
|
UVec2 := struct {x: uint, y: uint}
|
||
|
IVec2 := struct {x: int, y: int}
|