Start modularising shader code

This commit is contained in:
2021-06-12 01:41:46 +02:00
parent a5744f02f0
commit 0cb0c752e2
5 changed files with 180 additions and 195 deletions
+15
View File
@@ -0,0 +1,15 @@
module Shader.Parameters
( floatSize
, numDrawableElements
) where
import Graphics.Rendering.OpenGL hiding (Point,translate,scale,imageHeight)
import Foreign
floatSize :: Int
floatSize = sizeOf (0.5 :: GLfloat)
{-# INLINE floatSize #-}
numDrawableElements :: Int
{-# INLINE numDrawableElements #-}
numDrawableElements = 50000