This article organizes and briefly introduces the Twinklebeardev SDL 2.0 Tutorial related content (hereinafter referred to as tdsdltutorial).
This is a learning summary as I learn and understand SDL2.0 features.
The tdsdltutorial consists of 7 lesson. Lesson 0 is primarily about the configuration of the SDL2.0 development environment (Visual Studio, MinGW, Linux gcc, etc.).
Lesson 1 and Lesson 2 describe the loading of BMP images, the fundamentals of video rendering in SDL, and how SDL initializes the destruction, which mainly involves the coordinate systems of window, render, texture, surface, and drawing.
Lesson 3 introduces the use of the Sdl_image extension library, primarily how to load non-BMP format images and import them into SDL texture.
Lesson 4 describes the response of the SDL input event (keyboard, mouse, window event).
Lesson 5 introduces the loading and dynamic switching of sprites (class animation effects).
Lesson 6 describes the use of the Sdl_ttf extension library for displaying fonts in the SDL.
In general, as a primer, it is still very good. Can learn, but the content is very simple, does not provide a systematic learning route.
The relevant code can be downloaded from the author's GitHub or my Git library, and the URL is as follows: Https://git.oschina.net/Tocy/SampleCode.git, located in the Tdsdl2tutorial directory.
--------------------------------------------------------------------------------------------------------------- -------------
This article Tocy e-mail: [Email protected]
Copyright @2015, do not use for commercial purposes, reprint please specify the original address. I reserve all rights
Beginning SDL 2.0 (2) Twinklebeardev SDL 2.0 Tutorial