Simulation of Perspective Projections in C++ and OpenGL