examples: Added renderer/15-cliprect

This commit is contained in:
Ryan C. Gordon
2024-09-24 13:54:35 -04:00
parent ad3a4c677b
commit 95134f6d58
3 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
This example creates an SDL window and renderer, loads a texture
from a .bmp file, and stretches it across the window. Each frame, we move
the clipping rectangle around, so only a small square of the texture is
actually drawn.