manage artwork game data for iphone/ipad/osx
I looked for some hours, can't seem to find it anymore. There is a term for using some kind of a "artmap" for loading graphic parts inside your app?
For example, i make one file (jpg/tif/png?) with different buttons and other visual items. Then i 'copy' just a specific rect from the 'map' and use it as a button, title whatever.
I'm looking for some info, and pointers how to implement with cocoa (iphone, ipad, os开发者_StackOverflow社区x).
Thanks!
As Dietrich was saying its called a "Texture Atlas". Apple has some documentation for this:
https://developer.apple.com/library/ios/recipes/xcode_help-texture_atlas/AboutTextureAtlases/AboutTextureAtlases.html
精彩评论