For OpenGL Superbible sample code, you need to download its associated *.h files. https://github.com/openglsuperbible/sb7code
GLUT Documentation
Cube Environment Map Programming Tutorial
Complete code built in MSVC is included at the end of this tutorial.
Povray