summaryrefslogtreecommitdiff
path: root/SDL-3.2.8/examples/renderer/17-read-pixels/README.txt
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-03-06 13:26:57 -0800
committer3gg <3gg@shellblade.net>2026-03-06 13:26:57 -0800
commitf5c89b3bd5d74849757fd5b4d1a300068522a3ca (patch)
treed6f6e4c81745b393d7594b334710f30c0b2df3bd /SDL-3.2.8/examples/renderer/17-read-pixels/README.txt
Initial commitHEADmain
Diffstat (limited to 'SDL-3.2.8/examples/renderer/17-read-pixels/README.txt')
-rw-r--r--SDL-3.2.8/examples/renderer/17-read-pixels/README.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/SDL-3.2.8/examples/renderer/17-read-pixels/README.txt b/SDL-3.2.8/examples/renderer/17-read-pixels/README.txt
new file mode 100644
index 0000000..dd474e6
--- /dev/null
+++ b/SDL-3.2.8/examples/renderer/17-read-pixels/README.txt
@@ -0,0 +1,12 @@
1This example creates an SDL window and renderer, and draws a
2rotating texture to it, reads back the rendered pixels, converts them to
3black and white, and then draws the converted image to a corner of the
4screen.
5
6This isn't necessarily an efficient thing to do--in real life one might
7want to do this sort of thing with a render target--but it's just a visual
8example of how to use SDL_RenderReadPixels().
9
10A better, but less visual, use of SDL_RenderReadPixels() is to make
11screenshots: you grab the current contents of the screen, and save the pixels
12as a bitmap file or whatever.