Use camera

This commit is contained in:
Greg Shuflin committed 2025-12-17 16:49:39 -08:00
1 parent 760d050391
commit 1b562dfb5b
2 files changed
+5 -2

No files matched your search

+3
View File
@@ -168,6 +168,9 @@ partial def run : IO Unit := do
let cameraCount <- SDL.getCameras
IO.println s!"Camera count: {cameraCount}"
let idx := cameraCount[0]!
let camera <- SDL.openCamera idx
let initialState : EngineState := {
window := window, renderer := renderer
deltaTime := 0.0, lastTime := 0, running := true