Graphic tweaks/cleanup

This commit is contained in:
2025-12-01 12:37:54 +00:00
parent 1635ce0176
commit 25efce7a89
8 changed files with 116 additions and 146 deletions
+2
View File
@@ -34,6 +34,7 @@ pokeVerxs ::
UMV.MVector (PrimState IO) Int ->
Picture ->
IO ()
{-# INLINE pokeVerxs #-}
pokeVerxs vbos count = VFSM.mapM_ (pokeVerx vbos count) . VFSM.fromList
pokeVerx :: MV.MVector (PrimState IO) (Shader, VBO) -> UMV.MVector (PrimState IO) Int -> Verx -> IO ()
@@ -472,6 +473,7 @@ pokeLayVerxs ::
UMV.MVector (PrimState IO) Int ->
Picture ->
IO ()
{-# INLINE pokeLayVerxs #-}
pokeLayVerxs vbos counts = VFSM.mapM_ (pokeLayVerx vbos counts) . VFSM.fromList
pokeLayVerx
+2
View File
@@ -11,9 +11,11 @@ import Foreign
import Geometry.Data
pokeCloud :: Ptr Float -> Int -> Cloud -> IO Int
{-# INLINE pokeCloud #-}
pokeCloud vptr nv = pokeCloudLike vptr nv . mkCloudCloudLike
pokeDust :: Ptr Float -> Int -> Dust -> IO Int
{-# INLINE pokeDust #-}
pokeDust vptr nv = pokeCloudLike vptr nv . mkDustCloudLike
mkCloudCloudLike :: Cloud -> (Point3, Point4)