These demos are the incremental examples from Hans de Ruiter's amazing tutorials on OpenGL ES 3.0 and SDL2, check them out here!
- Tutorial 1: An empty SDL window with a GLContext
- Tutorial 2: Draw a single triangle using vertex and fragment shaders
- Tutorial 3: Draw a texture using SDL Image
- Tutorial 4: Draw a cube, set up a mvpMatrix using OpenGL Mathematics (GLM)
- Tutorial 5: Add a single point light source
- Tutorial 5a: Animate the cube with a rotation
Tutorial 1:
$ g++ main.cpp `pkg-config --cflags --libs sdl2 glesv2`
Tutorial 2:
$ g++ main.cpp shader.cpp `pkg-config --cflags --libs sdl2 glesv2`
Tutorial 3 onwards:
$ g++ main.cpp shader.cpp texture.cpp `pkg-config --cflags --libs sdl2 SDL2_image glesv2`
- libsdl2-dev
- libsdl2-image-dev
- libglm-dev