Render Dynamic Text with SDL2 in 7 Minutes
Rendering dynamic text means taking the keyboard input and rendering it to the window. This is a very simple implementation that you can follow easily. 💻 The Code: https://github.com/patrickodacre/sdl2-odin-examples/tree/master/render-dynamic-text 👾 The Written Guide: https://github.com/patrickodacre/sdl2-odin-examples/tree/master/render-dynamic-text#readme If you'd like to keep up to date with all my SDL2 Tutorials I recommend you download or clone the entire repo. You can navigate to any folder and find everything you need to run that specific example. 00:00 - What is Dynamic Text? 00:19 - Big Picture View 00:54 - Array vs Map 01:08 - What is a Rune? 01:20 - Iterating through a String 01:33 - Creating our Rune-to-Texture Mapping 02:50 - Rendering our Dynamic String 04:09 - Storing Text Input 04:47 - Concatenating Strings 05:22 - Deleting our Dynamic Text with BACKSPACE 06:05 - StartTextInput and StopTextInput Functions 06:45 - SetTextInputRect Function 07:01 - Do you know what these do? 07:09 - What's next? 🧙♂️ All code is written in the Odin programming language. Learn more about Odin here http://odin-lang.org/ #gamedev #sdl2 #odinlang #tutorial #programming #coding #codenewbie #learntocode
Download
0 formatsNo download links available.