Guide to Game Development/Rendering and Game Engines/OpenGL/GLUT/Basic 3D window creation

Here's the C++ code for creating a basic perspective window for a 3D environment :