Files
SDL3_fork/examples/renderer/15-cliprect
Colin Sames f4255e15bb
Some checks failed
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
add SDL3 repository to game engine
2026-04-03 16:14:58 +02:00
..
2026-04-03 16:14:58 +02:00
2026-04-03 16:14:58 +02:00

This example creates an SDL window and renderer, loads a texture
from a .png 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.