Implement poking using vertex lists
This commit is contained in:
+7
-2
@@ -79,7 +79,9 @@ doDrawing pdata w = do
|
||||
else renderBlankWalls pdata nWalls
|
||||
--_ <- renderFoldable pdata $ (picToAlt (Just 0) (polysToPic $ foregroundPics w) :: [RenderType])
|
||||
--_ <- renderFoldable pdata $ (picToAlt (Just 0) pic :: [RenderType])
|
||||
_ <- renderFoldable pdata $ polysToPic $ foregroundPics w
|
||||
--FIXME _ <- renderFoldable pdata $ polysToPic $ foregroundPics w
|
||||
vfore <- pokeBindFoldableLayer pdata $ polysToPic $ foregroundPics w
|
||||
mapM_ (uncurry $ drawShaderLay 0) (vfore IM.! 0)
|
||||
|
||||
--_ <- renderFoldable pdata $ map snd $ filter ((==0).fst) pic
|
||||
vnums <- pokeBindFoldableLayer pdata $ pic
|
||||
@@ -175,7 +177,10 @@ doDrawing pdata w = do
|
||||
depthMask $= Disabled
|
||||
blend $= Enabled
|
||||
blendFunc $= (SrcAlpha,OneMinusSrcAlpha)
|
||||
_ <- renderFoldable pdata $ fixedCoordPictures w
|
||||
|
||||
vovers <- pokeBindFoldableLayer pdata $ fixedCoordPictures w
|
||||
mapM_ (uncurry $ drawShaderLay 0) (vovers IM.! 0)
|
||||
--FIXME _ <- renderFoldable pdata $ fixedCoordPictures w
|
||||
depthMask $= Enabled
|
||||
|
||||
eTicks <- SDL.ticks
|
||||
|
||||
Reference in New Issue
Block a user