Made some stuff for opengl and glut.