gluPerspective was removed in OpenGL 3.1, any replacements?
You have to compute the matrix manually and then pass it to OpenGL. Computing the matrix This snippet of code is based on the gluPerspective documentation. void BuildPerspProjMat(float *m, float fov, float aspect, float znear, float zfar) { float f = 1/tan(fov * PI_OVER_360); m[0] = f/aspect; m[1] = 0; m[2] = 0; m[3] = … Read more