2024-11-10 12:57:48 -06:00
|
|
|
.{log, string} := @use("../../../libraries/stn/src/lib.hb")
|
|
|
|
sunset := @use("../../../libraries/sunset_proto/src/lib.hb")
|
2024-11-11 15:48:43 -06:00
|
|
|
render := @use("../../../libraries/render/src/lib.hb")
|
2024-11-10 12:57:48 -06:00
|
|
|
|
|
|
|
main := fn(): void {
|
2024-11-11 15:48:43 -06:00
|
|
|
sunset.client.find_server()
|
|
|
|
client := sunset.client.new(.(.(100, 100), .(100, 100), "Hello, World!\0"))
|
|
|
|
if client == null {
|
|
|
|
log.error("we did not get a window\0")
|
2024-11-10 12:57:48 -06:00
|
|
|
return
|
|
|
|
}
|
2024-11-11 15:48:43 -06:00
|
|
|
if sunset.client.update_props(client) == false {
|
|
|
|
log.error("we did not update props\0")
|
|
|
|
}
|
|
|
|
|
|
|
|
render.put_filled_circle(client.surface, .(50, 50), 20, render.white)
|
|
|
|
sunset.client.frame_ready(client)
|
|
|
|
sunset.client.quit(client)
|
|
|
|
sunset.client.shutdown_server()
|
2024-11-10 12:57:48 -06:00
|
|
|
}
|