Reset Shapes to be list (not stream) of ShapeObj
This commit is contained in:
+8
-2
@@ -98,11 +98,17 @@ pokeShape :: Ptr Float -> Ptr GLushort -> Ptr GLushort
|
||||
-> IO (Int,Int,Int)
|
||||
pokeShape ptr iptr ieptr = S.foldM_ (pokeShapeObj ptr iptr ieptr) (return (0,0,0)) return
|
||||
|
||||
--pokeShape' :: Ptr Float -> Ptr GLushort -> Ptr GLushort
|
||||
-- -> (Int,Int,Int)
|
||||
-- -> Stream (Of ShapeObj) IO ()
|
||||
-- -> IO (Int,Int,Int)
|
||||
--pokeShape' ptr iptr ieptr is = S.foldM_ (pokeShapeObj ptr iptr ieptr) (return is) return
|
||||
--
|
||||
pokeShape' :: Ptr Float -> Ptr GLushort -> Ptr GLushort
|
||||
-> (Int,Int,Int)
|
||||
-> Stream (Of ShapeObj) IO ()
|
||||
-> [ShapeObj]
|
||||
-> IO (Int,Int,Int)
|
||||
pokeShape' ptr iptr ieptr is = S.foldM_ (pokeShapeObj ptr iptr ieptr) (return is) return
|
||||
pokeShape' ptr iptr ieptr is = S.foldM_ (pokeShapeObj ptr iptr ieptr) (return is) return . S.each
|
||||
|
||||
pokeShapeObj
|
||||
:: Ptr Float
|
||||
|
||||
Reference in New Issue
Block a user