functioning openGL calls