Skip to content

arkenidar/sdl2-gl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d8126d7 · Sep 25, 2023

History

52 Commits
Sep 25, 2023
Jun 18, 2023
Jul 6, 2023
Jun 18, 2023
Jun 25, 2023
Jul 24, 2023
Jul 6, 2023
Jul 7, 2023
Jul 5, 2023
Sep 25, 2023
May 30, 2022
Jul 6, 2023
Jun 19, 2023
Jun 1, 2022
Sep 25, 2023
Jul 24, 2023

Repository files navigation

SDL2-GL

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).

marketplace.visualstudio.com

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

MSYS with MinGW (Windows)

  • 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

Needed Libraries for MSYS with MinGW (Windows)

  • install package SDL2 library: pacman -S mingw-w64-x86_64-SDL2

Ubuntu (maybe Debian also)

  • 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