GLSL + GLUT

Basic program showing how to use GLSL and GLUT together #include <stdio.h> #include <stdlib.h> #include <string.h> #include <map> using namespace std ; #define _USE_MATH_DEFINES #include <math.h> // REMEMBER TO INSTALL GLEW! http://glew.sourceforge.net/install.html // // 2 WAYS TO COMPILE GLEW: // 1) AS A STATIC LIB. // #defining GLEW_STATIC means to compile the glew library as … Continue reading GLSL + GLUT