forked from AbleOS/ableos
Sketchpad tools cleanup
This commit is contained in:
parent
2d4a66598d
commit
1ea3257921
|
@ -11,27 +11,20 @@ Tools := struct {
|
|||
pen_colour: render.Color = render.BLACK,
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
main := fn(): void {
|
||||
sunset.client.find_server()
|
||||
|
||||
window := sunset.client.new(.(.(600, 400), .(200, 200), "Sketch Pad"))
|
||||
if window == null {
|
||||
log.error("got no window")
|
||||
return
|
||||
}
|
||||
|
||||
mouse_pos := stn.math.Vec2(int).(0, 0)
|
||||
tools := Tools.{}
|
||||
|
||||
main := fn(): void {
|
||||
tools := Tools.{}
|
||||
|
||||
|
||||
sunset.client.find_server()
|
||||
|
||||
window := sunset.client.new(.(.(600, 400), .(200, 200), "Sketch Pad"))
|
||||
if window == null {
|
||||
log.error("got no window")
|
||||
return
|
||||
}
|
||||
window.surface.clear(tools.bg_colour)
|
||||
|
||||
mouse_pos := stn.math.Vec2(int).(0, 0)
|
||||
|
||||
loop {
|
||||
mouse := intouch.recieve_mouse_event()
|
||||
|
|
Loading…
Reference in a new issue