SFML Introduction to Sprites and Textures

Опубликовано: 24 Июль 2026
на канале: Mike Shah
10,140
204

►Full Series Playlist: SFML Playlist:    • SFML - Simple Fast Media Library  
►Find full courses on: https://courses.mshah.io/
►Join as Member to Support the channel:    / @mikeshah  

►Lesson Description: In this lesson we are going to be learning about sf::Sprite and sf::Texture. Textures are pasted on top of sprites, and allow us to move images around. Note that a texture is different than a image, in that a texture lives in memory on our graphics card (We don't have to think about how the pixels are transferred to the GPU, as sfml takes care of that). Finally in this lesson, I'll show you how to transform the sprite to make our scene a bit more dynamic.

00:00 Introduction
00:30 What is a Sprite
1:00 What is a texture? (And why it's different than an image)
2:40 Creating a Sprite
3:40 Creating a texture
4:45 Acquiring the Mona Lisa
5:50 Displaying our sprite, exploring sf::Drawable
7:55 Successful application running
8:33 Transforming (i.e. scaling) our sprite
9:12 Moving our sf::Sprite
11:00 Conclusion

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