Utility methods the OpenGL graphics implementation.