video: Turn several OpenGL attribute enums into integer typedefs.

Fixes #11308.
This commit is contained in:
Ryan C. Gordon
2024-10-23 17:34:44 -04:00
parent a04fda211c
commit 3c506630c3

View File

@@ -367,50 +367,50 @@ typedef enum SDL_GLattr
/** /**
* Possible values to be set for the SDL_GL_CONTEXT_PROFILE_MASK attribute. * Possible values to be set for the SDL_GL_CONTEXT_PROFILE_MASK attribute.
* *
* \since This enum is available since SDL 3.1.3. * \since This datatype is available since SDL 3.1.3.
*/ */
typedef enum SDL_GLprofile typedef Uint32 SDL_GLprofile;
{
SDL_GL_CONTEXT_PROFILE_CORE = 0x0001, #define SDL_GL_CONTEXT_PROFILE_CORE 0x0001 /**< OpenGL Core Profile context */
SDL_GL_CONTEXT_PROFILE_COMPATIBILITY = 0x0002, #define SDL_GL_CONTEXT_PROFILE_COMPATIBILITY 0x0002 /**< OpenGL Compatibility Profile context */
SDL_GL_CONTEXT_PROFILE_ES = 0x0004 /**< GLX_CONTEXT_ES2_PROFILE_BIT_EXT */ #define SDL_GL_CONTEXT_PROFILE_ES 0x0004 /**< GLX_CONTEXT_ES2_PROFILE_BIT_EXT */
} SDL_GLprofile;
/** /**
* Possible values to be set for the SDL_GL_CONTEXT_FLAGS attribute. * Possible flags to be set for the SDL_GL_CONTEXT_FLAGS attribute.
* *
* \since This enum is available since SDL 3.1.3. * \since This datatype is available since SDL 3.1.3.
*/ */
typedef enum SDL_GLcontextFlag typedef Uint32 SDL_GLcontextFlag;
{
SDL_GL_CONTEXT_DEBUG_FLAG = 0x0001, #define SDL_GL_CONTEXT_DEBUG_FLAG 0x0001
SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG = 0x0002, #define SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG 0x0002
SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG = 0x0004, #define SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG 0x0004
SDL_GL_CONTEXT_RESET_ISOLATION_FLAG = 0x0008 #define SDL_GL_CONTEXT_RESET_ISOLATION_FLAG 0x0008
} SDL_GLcontextFlag;
/** /**
* Possible values to be set for the SDL_GL_CONTEXT_RELEASE_BEHAVIOR * Possible values to be set for the SDL_GL_CONTEXT_RELEASE_BEHAVIOR
* attribute. * attribute.
* *
* \since This enum is available since SDL 3.1.3. * \since This datatype is available since SDL 3.1.3.
*/ */
typedef enum SDL_GLcontextReleaseFlag typedef Uint32 SDL_GLcontextReleaseFlag;
{
SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE = 0x0000, #define SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE 0x0000
SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x0001 #define SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x0001
} SDL_GLcontextReleaseFlag;
/** /**
* Possible values to be set SDL_GL_CONTEXT_RESET_NOTIFICATION attribute. * Possible values to be set SDL_GL_CONTEXT_RESET_NOTIFICATION attribute.
* *
* \since This enum is available since SDL 3.1.3. * \since This datatype is available since SDL 3.1.3.
*/ */
typedef enum SDL_GLContextResetNotification typedef Uint32 SDL_GLContextResetNotification;
{
SDL_GL_CONTEXT_RESET_NO_NOTIFICATION = 0x0000, #define SDL_GL_CONTEXT_RESET_NO_NOTIFICATION 0x0000
SDL_GL_CONTEXT_RESET_LOSE_CONTEXT = 0x0001 #define SDL_GL_CONTEXT_RESET_LOSE_CONTEXT 0x0001
} SDL_GLContextResetNotification;
/* Function prototypes */ /* Function prototypes */