For a game project, I have a couple of textures coming from multiple sources and I need to pack all these within a single texture atlas.
Example for a racing game circuit, there are textures for :
- the sky
- the track
- the various objects in environment
Each of the aforementioned item is a catalog containing many textures.
My problem is the following:
How should I design the ins and outs of this object, knowing that I must be able to add textures to it, then retrieve the region it has been placed in ?
I first came up with the idea using a simple
string but did not like that approach regarding the usage of it throughout a code base.
Is this a case of over-engineering from me or would a simple
string be sufficient for such job ?