chore: Get raylib POC working
This commit is contained in:
parent
b1c83dbf69
commit
6d5444a31c
7 changed files with 47 additions and 5 deletions
16
app/main.go
16
app/main.go
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue