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
+8 -4
View File
@@ -8,10 +8,12 @@
module Shape.Data where
import Foreign.Storable
import Control.Lens
import Data.Aeson
import Data.Aeson.TH
import Geometry.Data
import Data.Word
data ShapeType
= FlatFaces { _topBoxSize :: Int }
@@ -52,11 +54,13 @@ makeLenses ''ShapeType
type Shape = [Surface]
nShapeVerxComp :: Int
nShapeVerxComp = sum shapeVerxSizes
shapeVerxSize = sizeOf (0 :: Float) * 8 + 4 * sizeOf (0 :: Word8)
shapeVerxSizes :: [Int]
shapeVerxSizes = [4,4,4]
--nShapeVerxComp :: Int
--nShapeVerxComp = sum shapeVerxSizes
--
--shapeVerxSizes :: [Int]
--shapeVerxSizes = [4,4,4]
deriveJSON defaultOptions ''ShadowFidelity
deriveJSON defaultOptions ''ShapeType