Poke word8 colors for shapes

This commit is contained in:
2023-04-13 02:30:23 +01:00
parent 5d4234a8f4
commit 3c43caee9c
6 changed files with 33 additions and 15 deletions
+5
View File
@@ -1,5 +1,6 @@
module Shader.Parameters
( floatSize
, ubyteSize
, numDrawableElements
, numSubElements
, glushortSize
@@ -8,6 +9,10 @@ module Shader.Parameters
import Graphics.GL.Core45
import Foreign
ubyteSize :: Int
ubyteSize = sizeOf (5 :: Word8)
{-# INLINE ubyteSize #-}
floatSize :: Int
floatSize = sizeOf (0.5 :: GLfloat)
{-# INLINE floatSize #-}