Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arkenidar/sdl2-gl

OpenGL in SDL2, GL-ES in SDL2
https://github.com/arkenidar/sdl2-gl

2d 3d game gles msys msys2-mingw64 obj ogl opengl sdl sdl2 stl vscode

Last synced: about 1 month ago
JSON representation

OpenGL in SDL2, GL-ES in SDL2

Awesome Lists containing this project

README

        

# 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`