title: SDL2 C++ Taking a screenshot
body: <p>Hi I would like to know if it is possible to simply take a screenshot with SDL2.
  I tried <code>SDL_GetWindowSurface</code> but I get an error saying:</p>
  
  <blockquote>
    <p>No hardware accelerated renderers available.</p>
  </blockquote>
  
  <p>I took the code from <a href="https://stackoverflow.com/questions/20233469/how-do-i-take-and-save-a-bmp-screenshot-in-sdl-2">here</a>.</p>
  
  <p>Another solution I thought about is converting a texture to a surface but I didn't manage to do so...</p>
  
  <p>Do you have any solution?</p>