egl: implement SDL_GL_EGL_PLATFORM attribute

This implements a new SDL_GL_EGL_PLATFORM attribute to set the
"platform" argument for SDL_EGL_LoadLibrary on Windows, macOS, and
Linux. I've limited it to those three operating systems because that's
what I've been able to test against.
This commit is contained in:
Steven Noonan 2022-08-25 20:29:41 -07:00
parent aed980526c
commit c608cf6222
No known key found for this signature in database
GPG key ID: 408EEB508ED0CD4D
6 changed files with 19 additions and 6 deletions

View file

@ -249,7 +249,8 @@ typedef enum
SDL_GL_CONTEXT_RELEASE_BEHAVIOR,
SDL_GL_CONTEXT_RESET_NOTIFICATION,
SDL_GL_CONTEXT_NO_ERROR,
SDL_GL_FLOATBUFFERS
SDL_GL_FLOATBUFFERS,
SDL_GL_EGL_PLATFORM
} SDL_GLattr;
typedef enum