Cross-platform "SDL2+GL" C API. GNU GCC & GNU Makefile for Windows also. VSCode files for Task (compile with Make) and Debug (GDB debugger in VSCode, e.g. breakpoints are considered).
C/C++ for Visual Studio Code:
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools
Make support and task provider: Extension to run Makefile tasks from VS Code
https://marketplace.visualstudio.com/items?itemName=carlos-algms.make-task-provider
- install MSYS to
C:\msys64
https://www.msys2.org/#installation - update pacman package manager
pacman -Syu
- install package gcc compiler:
pacman -S mingw-w64-x86_64-toolchain
- install package gdb debugger:
pacman -S mingw-w64-x86_64-gdb
- install package make build:
pacman -S mingw-w64-x86_64-make
- add to System \ Advanced settings \ Environment Variables \ PATH
C:\msys64\mingw64\bin
C:\msys64\usr\bin
- install package SDL2 library:
pacman -S mingw-w64-x86_64-SDL2
- install GCC (compiler tool):
sudo apt install gcc
- install CMake (make tool):
sudo apt install cmake
- install SDL2 (media layer):
sudo apt install libsdl2-dev libsdl2-image-dev
- install OpenGL (graphic layer):
sudo apt install libgl-dev libglu-dev