This might be a dumb question but what is tMap?
I do this will an array. Note that now that the texture is reference by the tMap and the object you will need to remove it from the map when it is no longer needed by the game.
I use simple reference counting.
I also do tricky stuff like store the full path and can reload every texture in the game in one call. This makes tuning textures cool.
I do this will an array. Note that now that the texture is reference by the tMap and the object you will need to remove it from the map when it is no longer needed by the game.
I use simple reference counting.
I also do tricky stuff like store the full path and can reload every texture in the game in one call. This makes tuning textures cool.