init drawing
This commit is contained in:
parent
a9bf484525
commit
01e7f7120d
2 changed files with 12 additions and 0 deletions
11
src/Draw.hs
Normal file
11
src/Draw.hs
Normal file
|
@ -0,0 +1,11 @@
|
|||
module Draw where
|
||||
|
||||
import Control.Concurrent.MVar
|
||||
|
||||
-- internal imports
|
||||
|
||||
import Types
|
||||
|
||||
draw :: MVar State -> Word -> IO ()
|
||||
draw state ident = do
|
||||
return ()
|
|
@ -109,6 +109,7 @@ main = do
|
|||
SDL.glMakeCurrent win context
|
||||
mapM_ (eventHandler run) =<< SDL.pollEvents
|
||||
GL.clear [GL.ColorBuffer, GL.DepthBuffer, GL.StencilBuffer]
|
||||
draw state
|
||||
GL.flush
|
||||
SDL.glSwapWindow win
|
||||
) contexts
|
||||
|
|
Loading…
Reference in a new issue