Uploaded October 2015 | Updated December 2026, 3 hours ago
Today we add a basic main menu and talk about a unicode issue in the previous video.
EDIT: Thanks to Etop Owertwon, we don't need to use UTF8-CPP, we can actually just use a built in CEGUI string class. Code here: pastebin.com/BKH3CyM3
Code: github.com/Barnold1953/GraphicsTutorials/tree/Tutorial55
CEGUI Event reference: cegui.org.uk/wiki/Event_reference
UTF8-CPP: utfcpp.sourceforge.net
Twitter: twitter.com/ChillstepCoder
Seed Of Andromeda Channel: youtube.com/user/DubstepCoder
Seed Of Andromeda Website: seedofandromeda.com
Today we add a basic main menu and talk about a unicode issue in the previous video.
EDIT: Thanks to Etop Owertwon, we don't need to use UTF8-CPP, we can actually just use a built in CEGUI string class. Code here: pastebin.com/BKH3CyM3
Code: github.com/Barnold1953/GraphicsTutorials/tree/Tutorial55
CEGUI Event reference: cegui.org.uk/wiki/Event_reference
UTF8-CPP: utfcpp.sourceforge.net
Twitter: twitter.com/ChillstepCoder
Seed Of Andromeda Channel: youtube.com/user/DubstepCoder
Seed Of Andromeda Website: seedofandromeda.com
![C++/Game Tutorial 30: Dynamic Arrays, Destructors!
In this tutorial we learn how to make dynamic arrays and how to use destructors in our classes!
We also learn that a pointer can be accessed like an array! For example, if we have a pointer;
int *myInt = new int;
If we call myInt[3], its going to return us the value at the memory address (int)myInt + 3 * sizeof(int).
Fun Fact! ( You dont need to know this :P )
myInt[3];
is equivalent to
*(myInt + 3);
when you add 1 to an int *, it actually adds sizeof(int) to the value! Print it out and see for yourself!
printf(%dn, (int)myInt);
printf(%dn, (int)(myInt + 1));
Twitter: https://twitter.com/ChillstepCoder
Seed Of Andromeda Channel: https://www.youtube.com/user/DubstepCoder
Seed Of Andromeda Website: http://www.seedofandromeda.com/ C++/Game Tutorial 30: Dynamic Arrays, Destructors!](https://i.ytimg.com/vi/51EvrNznOks/mqdefault.jpg)









