Write a restricted OpenGL library