more camera type stuff
This commit is contained in:
1 parent
fbab89c3ad
commit
6d7a079f1e
3 files changed
+67
-12
No files matched your search
@@ -173,6 +173,14 @@ partial def run : IO Unit := do
|
||||
|
||||
let spec <- SDL.getCameraFormat camera
|
||||
|
||||
let msg :=
|
||||
let width := spec.width
|
||||
let height := spec.height
|
||||
let n := spec.framerateNumerator
|
||||
let d := spec.framerateDenominator
|
||||
s!"Framerate: {n}/{d} FPS width: {width}, height: {height}"
|
||||
IO.println msg
|
||||
|
||||
let initialState : EngineState := {
|
||||
window := window, renderer := renderer
|
||||
deltaTime := 0.0, lastTime := 0, running := true
|
||||
|
||||
Reference in new issue
Block a user