Hi,
I decided to use one texture atlas for all of my sprites.
Should I use single AtlasManager for it?
I guess it will take less memory. Or no?
For example, I have layers:
RootLayer (AtlasManager)
Layer1
--- layer2
--- layer3
Layer4
---Layer5
Each layer contains sprites, I can create AtlasManager in RootLayer and share its pointer to all other layers,
but all the sprites will be attached to RootLayer.
Otherwise I should create AtlasManager in each Layer,
five managers at all (or maybe much more).
RootLayer (AtlasManager)
Layer1 (AtlasManager)
--- layer2 (AtlasManager)
--- layer3 (AtlasManager)
Layer4 (AtlasManager)
---Layer5 (AtlasManager)
I worry about memory usageā¦
Thanks.