Here you could find the code for OpenGL 101, for more informations visit the project webpages:
https://solarianprogrammer.com/2013/05/10/opengl-101-windows-osx-linux-getting-started/
https://solarianprogrammer.com/2013/05/13/opengl-101-drawing-primitives/
https://solarianprogrammer.com/2013/05/17/opengl-101-textures/
https://solarianprogrammer.com/2013/05/22/opengl-101-matrices-projection-view-model/
You could use these programs under the terms of GPL v3, for more details see:
http://www.gnu.org/copyleft/gpl.html
Copyright 2016 Sol from www.solarianprogrammer.com