From 6aaedb813fa11ba0679c3051bc2eb28646b9506c Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 30 Aug 2025 16:53:58 -0700 Subject: Update to SDL3 --- .../SDL-3.2.20/examples/renderer/17-read-pixels/README.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/contrib/SDL-3.2.20/examples/renderer/17-read-pixels/README.txt (limited to 'src/contrib/SDL-3.2.20/examples/renderer/17-read-pixels/README.txt') diff --git a/src/contrib/SDL-3.2.20/examples/renderer/17-read-pixels/README.txt b/src/contrib/SDL-3.2.20/examples/renderer/17-read-pixels/README.txt new file mode 100644 index 0000000..dd474e6 --- /dev/null +++ b/src/contrib/SDL-3.2.20/examples/renderer/17-read-pixels/README.txt @@ -0,0 +1,12 @@ +This example creates an SDL window and renderer, and draws a +rotating texture to it, reads back the rendered pixels, converts them to +black and white, and then draws the converted image to a corner of the +screen. + +This isn't necessarily an efficient thing to do--in real life one might +want to do this sort of thing with a render target--but it's just a visual +example of how to use SDL_RenderReadPixels(). + +A better, but less visual, use of SDL_RenderReadPixels() is to make +screenshots: you grab the current contents of the screen, and save the pixels +as a bitmap file or whatever. -- cgit v1.2.3