mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
chore(build): use SDL3
This commit is contained in:
parent
9d04a35d87
commit
b3c0734a9e
3286 changed files with 866354 additions and 554996 deletions
12
vendor/sdl-3.2.10/examples/renderer/17-read-pixels/README.txt
vendored
Normal file
12
vendor/sdl-3.2.10/examples/renderer/17-read-pixels/README.txt
vendored
Normal file
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue