Implement basic config file

This commit is contained in:
jgk
2021-03-22 22:40:11 +01:00
parent 553c6978d6
commit 54b28db249
5 changed files with 23 additions and 29 deletions
+4 -3
View File
@@ -15,19 +15,20 @@ import Preload
import Control.Lens ((.~),(&),(+~))
winConfig :: Int -> Int -> WindowConfig
winConfig x y = defaultWindow
{ windowGraphicsContext
= OpenGLContext (defaultOpenGL { glProfile = Core Normal 4 3
, glColorPrecision = V4 8 8 8 8
}
)
, windowInitialSize = V2 x y
, windowInitialSize = V2 (fromIntegral x) (fromIntegral y)
, windowResizable =True
}
setupLoop :: String
-> CInt
-> CInt
-> Int
-> Int
-> IO (PreloadData a)
-> (PreloadData a -> IO ())
-> world