Removing OpenGL methods from classes