https://github.com/mborgerson/basic_sdl2_gl
No-fuss Modern SDL2/OpenGL/GLEW Boilerplate
https://github.com/mborgerson/basic_sdl2_gl
boilerplate glew opengl sdl2 shaders
Last synced: 3 months ago
JSON representation
No-fuss Modern SDL2/OpenGL/GLEW Boilerplate
- Host: GitHub
- URL: https://github.com/mborgerson/basic_sdl2_gl
- Owner: mborgerson
- Created: 2017-12-21T08:40:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-21T08:42:11.000Z (almost 8 years ago)
- Last Synced: 2025-04-11T03:11:24.213Z (6 months ago)
- Topics: boilerplate, glew, opengl, sdl2, shaders
- Language: C
- Size: 201 KB
- Stars: 20
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Modern SDL2 OpenGL Boilerplate for C/C++
========================================Want to just dive in and get your SDL2/GL application going? Me too. Here's
a no-fuss boilerplate for you.Short and sweet:
* Create a window
* Create an OpenGL context
* Initialize basic shaders, geometry, and a texture
* Render a couple textured triangles
* Handle main window close event
Based on inline code snippets from the tutorials at [https://open.gl](https://open.gl).
License
-------
[CC0 (DWTFYW)](https://creativecommons.org/publicdomain/zero/1.0/legalcode)Build Instructions
------------------
You can use the provided CMake setup if you want to keep it simple. On macOS,
it looks like:```
$ brew install cmake sdl2 glew
$ mkdir build; cd build
$ cmake .. && make
$ ./sdl_app
```