I store the first 3 values in a pair of maps like this:
Zero AddMenuAtlasTestructure (Int tag, const char * filename, const char * textureName) {map & lt; Const char *, const char * and gt; _item; _item.insert (pair and lieutenant; const char *, const char * & gt; (filename, texture name)); M_texturesToLoad.insert (pair & lt; int, map & lt; const char *, const char * & gt; & gt; (tag, _item)); };
Then I assume any other function like this:
Map
"textureName" is a complete path of this type: "/ user / adi / library / application support / iphone simulator / user / application / 5 fdi 200 9 -2e 3 9 4 -2F-Bb 62-05A 16429551 D My problem is that the first task can be obtained by the name "Texture", but the second function can not get the "Adlas" path, "(* _content) .second" .
And the "Adlas" prototype is:
Zero Atlas Manager :: addAtlas (Konst Four * a_config file, const char * a_spriteName, int a_nKey)
I develop it in iPhone dev using XCode.
- Use
pair and lt; int, map & lt; const char * instead of make_pair
, const Char *>
- Texture loader is a map
-
->
Code> Int -> Const char * - & gt; Const char *
I do not know how you used another index.
Maybe it:
Atlas Mengsinglington-> Adattles ((* _ content). First, (* _content) .second, _tag)
should be:
Atlas ManagerCiltington-> AddAtlas (_content- & gt; first, _content- & gt; second) Start () - & gt; Second, _tag)
Comments
Post a Comment