Skip to content

mborgerson/basic_sdl2_gl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

ScreenShot

Based on inline code snippets from the tutorials at https://open.gl.

License

CC0 (DWTFYW)

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

About

No-fuss Modern SDL2/OpenGL/GLEW Boilerplate

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published