Initial port of the C++ version of the memory tutorial

A couple of things still need to be done though, including more sharing with
the Rust version, cmake syntax highlighting, externalizing the code.
This commit is contained in:
Simon Hausmann 2021-06-17 11:52:20 +02:00
parent 0299ad66c8
commit 8083046e1d
18 changed files with 437 additions and 5 deletions

View file

@ -71,4 +71,5 @@ important because capturing a copy of the `main_window` itself within the callba
The `MainWindow` owns the callback handler, which itself owns a reference to the `MainWindow`, which must be weak
instead of strong to avoid a memory leak.
And that's it, now we can run the game!
These were the last changes and running the result gives us a window on the screen that allows us
to play the game by the rules.