add some opengl interface stuff