You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Prior to 5cdf838, SpriteAtlas added images to the texture atlas on an as-needed basis, as individual images were requested via SpriteAtlas::getIcon. Now it preemptively adds all images to the texture when buildIconMap is called.
Not sure how important the old behavior was. Though, at the very least, buildIconMap should handle the case where the BinPack overflows and getIcon returns a null optional.
Prior to 5cdf838,
SpriteAtlasadded images to the texture atlas on an as-needed basis, as individual images were requested viaSpriteAtlas::getIcon. Now it preemptively adds all images to the texture whenbuildIconMapis called.Not sure how important the old behavior was. Though, at the very least,
buildIconMapshould handle the case where the BinPack overflows andgetIconreturns a null optional.cc @ChrisLoer