The tutorial shows how to use SDL_RenderCopy to clip a portion of a texture and display it.
A texture with 8 colors is clipped and used to create a random 12x9 map on the display.
In addition it is compared to using 3 separate textures to do the same.
You can download a copy of the project at my site here
http://www.grhmedia.com/view_SDL204.html
If you would like to see more tutorials like this please support me on patreon
https://www.patreon.com/grhayes
Download
0 formats
No download links available.
SDL2.0 tutorial 4 clipping textures and displaying them | NatokHD