- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
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
Видео Render Dynamic Text with SDL2 in 7 Minutes канала Handmade Games
💻 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
Видео Render Dynamic Text with SDL2 in 7 Minutes канала Handmade Games
Комментарии отсутствуют
Информация о видео
29 декабря 2022 г. 20:44:47
00:07:19
Другие видео канала





















