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

22 lines
542 B
Plaintext
Raw Normal View History

2024-09-13 16:40:05 -05:00
stn := @use("../../../libraries/stn/src/lib.hb");
.{string, memory, buffer} := stn
horizon_api := @use("../../../libraries/horizon_api/src/lib.hb");
.{create_window} := horizon_api
2024-09-13 20:17:47 -05:00
ignim := @use("../../../libraries/ignim/src/lib.hb");
.{init_vulkan} := ignim
2024-09-13 16:40:05 -05:00
main := fn(): int {
windowing_system_buffer := buffer.create("XHorizon\0")
create_window(windowing_system_buffer)
2024-09-13 20:17:47 -05:00
// TODO: get WindowID
vk_state := init_vulkan()
if vk_state == ignim.errors.IncompatibleDriver {
stn.log.info("Incompatible Vulkan Driver\0")
}
2024-09-13 16:40:05 -05:00
return 0
}