This is part 2 of my SDL series using C. If you missed part 1 you can find it here.📌 Displaying Text Cheat Sheet TTF_Init TTF_OpenFont. TTF_RenderText_Solid SDL_CreateTextureFromSurface SDL_RenderCopy Displaying Text in SDL2 requires a very similar set of operations to how we handled creating a window and renderer in part 1. But before we get to displaying text, we need to include the appropriate header. Since SDL2 is designed to be modular, the libraries that work with text are in their own separate headers/files. To work with text, you will need
SDL Tutorial Part 2: Drawing Text
SDL Tutorial Part 2: Drawing Text
SDL Tutorial Part 2: Drawing Text
This is part 2 of my SDL series using C. If you missed part 1 you can find it here.📌 Displaying Text Cheat Sheet TTF_Init TTF_OpenFont. TTF_RenderText_Solid SDL_CreateTextureFromSurface SDL_RenderCopy Displaying Text in SDL2 requires a very similar set of operations to how we handled creating a window and renderer in part 1. But before we get to displaying text, we need to include the appropriate header. Since SDL2 is designed to be modular, the libraries that work with text are in their own separate headers/files. To work with text, you will need