title: SDL 2.0 / C++ - How can I make an array of "SDL_Texture"s?
body: <pre><code>SDL_Texture *t0; SDL_Texture *t1;   
  SDL_Texture *t[] = {t0,t1};
  </code></pre>
  
  <p>It compiles just fine, but if I try to render it (Considering that t0 and t1 are already defined, of course):</p>
  
  <pre><code>SDL_RenderCopy(ren,t[0],NULL,&amp;someRect);
  SDL_RenderCopy(ren,t[1],NULL,&amp;someRect);
  </code></pre>
  
  <p>I get... nothing (By nothing I mean: Pure and infinite and unfathomable and useless darkness). And this:</p>
  
  <pre><code>SDL_RenderCopy(ren,t0,NULL,&amp;someRect);
  SDL_RenderCopy(ren,t1,NULL,&amp;someRect);
  </code></pre>
  
  <p>Works just fine. </p>
  
  <p>The problem is that, supposing that my game had 9999 textures, I want just to loop over the texture array, instead of doing boring manual work 9999 times. I really appreciate any help, for I don't know how SDL_Texture was implemented and have absolutely no idea why it just does not work inside an array.</p>