[Ep. 17] Textured Rectangles with SDL Texture and SDL RenderCopy | Introduction to SDL2

Published: 22 September 2021
on channel: Mike Shah
7,298
144

►SDL2 Playlist:    • SDL2 Simple Directmedia Layer  
►Find full courses on: https://courses.mshah.io/
►Join as Member to Support the channel:    / @mikeshah  

►Git Repo: https://github.com/MikeShah/SDL2_Tuto...
►Lesson Description: In this lesson I am going to show you how to create a textured surface. Textures differ from surfaces in that the memory of a texture exists on the GPU, so we can truly take advantage of hardware acceleration.

00:00 Recap of how we have drawn our scene
1:35 Loading image with SDL_Surface
2:06 What is a texture
3:18 SDL_CreateTextureFromSurface
4:33 Resource Management with FreeSurface
5:05 SDL_DestroyTexture
5:40 Texturing our Rectangle
6:20 SDL_RenderCopy

►YouTube Channel:    / mikeshah  
►Please like and subscribe to help the channel!
►Join our free community: https://courses.mshah.io/communities/...


Watch video [Ep. 17] Textured Rectangles with SDL Texture and SDL RenderCopy | Introduction to SDL2 online, duration hours minute second in high quality that is uploaded to the channel Mike Shah 22 September 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 7,298 times and liked it 144 visitors.