README.txt 584 B

123456789101112
  1. This example creates an SDL window and renderer, and draws a
  2. rotating texture to it, reads back the rendered pixels, converts them to
  3. black and white, and then draws the converted image to a corner of the
  4. screen.
  5. This isn't necessarily an efficient thing to do--in real life one might
  6. want to do this sort of thing with a render target--but it's just a visual
  7. example of how to use SDL_RenderReadPixels().
  8. A better, but less visual, use of SDL_RenderReadPixels() is to make
  9. screenshots: you grab the current contents of the screen, and save the pixels
  10. as a bitmap file or whatever.