implement SDL_GL_* functions