progress binding RGFW and making RGFW shell

This commit is contained in:
2026-01-22 21:02:22 +00:00
parent e0c09c5480
commit d0f9220cfe
8 changed files with 80 additions and 28 deletions

21
shell/rgfw-loop.sml Normal file
View File

@@ -0,0 +1,21 @@
structure RgfwLoop =
struct
fun loop (counter, window) =
if Rgfw.shouldCloseWindow window then
Rgfw.closeWindow window
else
let val () = print ("counter = " ^ Int.toString counter ^ "\n")
in loop (counter + 1, window)
end
fun main () =
let
val () = print "15\n"
val window = Rgfw.createWindow ("shf", 0, 0, 1920, 1080)
val () = print "17\n"
in
loop (0, window)
end
end
val _ = RgfwLoop.main ()