title: Zoom in/out scene with SDL2
body: <p>I'm pretty new to SDL2 and I'm working on a small 2D game in C++. I'm trying to figure out how to do some simple operations with this library, mainly because I'd like to learn something new from this experience.</p>
  
  <p>I've a bunch of elements, some of which are renderable items that are part of a scene, while some others are HUD items. The problem I'm facing with is that I want to zoom in and out the scene without affecting the HUD elements.<br>
  This is how I approached it:</p>
  
  <ul>
  <li>I created a default window and renderer with <code>SDL_CreateWindowAndRenderer</code>.</li>
  <li>I created a texture out of the renderer with <code>SDL_CreateTexture</code> and set the texture access pattern to <code>SDL_TEXTUREACCESS_TARGET</code>.</li>
  <li>Initially I copied all scene entities through the renderer to the targeted texture, that is I set the rendering context to the targeted texture using <code>SDL_SetRenderTarget</code> before to copy textures over.</li>
  <li>I set back the renderer to the default context and copied the targeted texture using <code>SDL_RenderCopy</code>.</li>
  <li>Finally I copied all HUD entities to the renderer (that is, directly to the default context).</li>
  </ul>
  
  <p>So far so good, everything works as expected and I can easily zoom in and out the scene by using the right source and destination rectangles when copying the targeted texture over to the renderer through <code>SDL_RenderCopy</code>.</p>
  
  <p>My question is: is this a sensible approach or is there a much better solution to do that?<br>
  It works just fine, that's good, but it looks to me a bit tricky and I'm not completely convinced of that.</p>