Refactor vao preload
This commit is contained in:
+3
-1
@@ -41,9 +41,11 @@ setupLoop wName xSize ySize
|
||||
(\_ -> bracket customInit initCleanup $ \setup -> do -- setup <- customInit
|
||||
-- swapInterval $= ImmediateUpdates
|
||||
GL.blend $= GL.Enabled
|
||||
GL.depthMask $= GL.Enabled
|
||||
GL.blendEquation $= GL.FuncAdd
|
||||
GL.blendFunc $= (GL.SrcAlpha,GL.OneMinusSrcAlpha)
|
||||
GL.clearColor $= GL.Color4 0 0.5 0 0
|
||||
GL.clearColor $= GL.Color4 0 0.5 0 1
|
||||
GL.clearDepth $= (200)
|
||||
doLoop setup window startWorld
|
||||
sideEffects eventFn worldFn
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user