chore: Get raylib POC working

This commit is contained in:
Tera << 8 2025-06-23 12:00:57 -04:00
parent b1c83dbf69
commit 6d5444a31c
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
7 changed files with 47 additions and 5 deletions

View file

@ -14,6 +14,8 @@ import (
"github.com/goccy/go-yaml"
"github.com/kirsle/configdir"
"github.com/urfave/cli/v3"
rl "git.terah.dev/UnrealXR/raylib-go/raylib"
)
func mainEntrypoint(context.Context, *cli.Command) error {
@ -100,6 +102,20 @@ func mainEntrypoint(context.Context, *cli.Command) error {
log.Info("Initializing XR headset")
rl.InitWindow(800, 450, "raylib [core] example - basic window")
defer rl.CloseWindow()
rl.SetTargetFPS(60)
for !rl.WindowShouldClose() {
rl.BeginDrawing()
rl.ClearBackground(rl.RayWhite)
rl.DrawText("Congrats! You created your first window!", 190, 200, 20, rl.LightGray)
rl.EndDrawing()
}
return nil
}