Implement texture atlas, details on why it works unclear

This commit is contained in:
2021-06-14 16:24:10 +02:00
parent f09fe8798e
commit 73bd407c49
16 changed files with 118 additions and 26 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ import Data.Maybe (isNothing)
-- consider generalising to alternative rather than using LTree
-- | Transform a picture into a tree of renderable objects
picToLTree
:: Maybe Int -- ^ Layer filter. Draw if 'Nothing' or when value is the same as at the leaf.
:: Maybe Int -- ^ Layer filter. Draw 'Nothing' when value is the same as at the leaf.
-> Picture
-> LTree RenderType
{-# INLINE picToLTree #-}