1
0
Fork 0
forked from AbleOS/ableos
ableos/sysdata/programs/sunset_client/src/main.hb

17 lines
528 B
Plaintext
Raw Normal View History

2024-11-10 12:57:48 -06:00
.{log, string} := @use("../../../libraries/stn/src/lib.hb")
sunset := @use("../../../libraries/sunset_proto/src/lib.hb")
render := @use("../../../libraries/render/src/lib.hb")
2024-11-10 12:57:48 -06:00
main := fn(): void {
sunset.client.find_server()
2024-11-13 11:03:31 -06:00
window := sunset.client.new(.(.(100, 100), .(100, 100), "Hello, World!\0"))
if window == null {
log.error("got no window\0")
2024-11-10 12:57:48 -06:00
return
}
2024-11-13 11:03:31 -06:00
render.put_filled_circle(window.surface, .(50, 50), 25, render.white)
if sunset.client.send_frame(window) == false {
log.error("did not send frame\0")
}
2024-11-10 12:57:48 -06:00
}