01 - Cpp2 and cppfront - Beginners Guide to SDL2 in Cpp2 / cppfront
Вставка
- Опубліковано 5 вер 2024
- Setting up cppfront and compiling a Cpp2 source file.
An in-depth guide to getting started with SDL2 in Cpp2 C++ Syntax 2
This is SDL2 with Herb Sutter's C++ Syntax 2 or Cpp2 using cppfront cross compiler.
github.com/Pro...
@ProgrammingRainbow
cppfront github page: github.com/hsu...
cppfront documentation: hsutter.github...
3rd Party cppfront documentation: github.com/ntr...
CppCon 2022 cppfront presentation: • Can C++ be 10x Simpler...
CppNow 2023 cppfront presentation: • Keynote: The Evolution...
Great topic to dig into! Thanks for this series!
Btw, how did you achieve the cpp2 syntax highlighting? I'm trying it in VS Code with MS C++ extensions, but there is no cpp2 syntax highlighting (or I probably miss something).
@dino_source there is an official vs code addon for cppfront, the one herb mentioned. That's why I was in vs codium for this one instead of neovim.
@@dino_source marketplace.visualstudio.com/items?itemName=elazarcoh.cpp2-syntax
@@ProgrammingRainbow yeah, thanks so much! I didn't manage to find it in VS Code Extensions Marketplace (inside VS Code), so just downloaded and installed it manually using the following command:
code --install-extension ~/Downloads/elazarcoh.cpp2-syntax-0.0.5.vsix
Awesome video, keep up the good work!
Thank you very much.
Did you try adding a destructor, to see if that fixes the move in place of inout bug?
there was some talk about it in this video. I haven't been back with c++2 in a little while. But i plan to come back and build some games. But unless they implement modules that can handle c from sdl2 it will have to be a single file program. ua-cam.com/video/xnxq6TilDYg/v-deo.html