Implementation of the basic functions of OpenGL pipeline