added a bunch of opengl stuff