Wiki Page Content

Differences between revisions 6 and 7
Revision 6 as of 2014-05-23 00:15:28
Size: 3128
Editor: CharlesSwain
Comment: Added message from Ryan.
Revision 7 as of 2014-05-23 17:15:19
Size: 3352
Editor: RyanGordon
Comment: Updated disclaimer/warning.
Deletions are marked like this. Additions are marked like this.
Line 28: Line 28:
If you don't know what this is, you should assume the defaults are already fine and shouldn't use these flags. If you don't know what these values do, you should assume the defaults are already fine and shouldn't use these flags. Not only are they not available on all platforms and GPU drivers, they can also have dramatic consequences for OpenGL functionality and performance, so please research them heavily before putting these flags to use.

SDL_GLcontextFlag

An enumeration of OpenGL context configuration flags.

Values

SDL_GL_CONTEXT_DEBUG_FLAG

see Remarks

SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG

see Remarks

SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG

see Remarks

SDL_GL_CONTEXT_RESET_ISOLATION_FLAG

see Remarks

Code Examples

SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG);

Remarks

This enumeration is used in conjunction with SDL_GL_SetAttribute and SDL_GL_CONTEXT_FLAGS. Multiple flags can be OR'd together.

If you don't know what these values do, you should assume the defaults are already fine and shouldn't use these flags. Not only are they not available on all platforms and GPU drivers, they can also have dramatic consequences for OpenGL functionality and performance, so please research them heavily before putting these flags to use.

SDL_GL_CONTEXT_DEBUG_FLAG

This flag maps to GLX_CONTEXT_DEBUG_BIT_ARB in the GLX_ARB_create_context extension for X11 and WGL_CONTEXT_DEBUG_BIT_ARB in the WGL_ARB_create_context extension for Windows. This flag is currently ignored on other targets that don't support equivalent functionality.

SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG

This flag maps to GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB in the GLX_ARB_create_context extension for X11 and WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB in the WGL_ARB_create_context extension for Windows. This flag is currently ignored on other targets that don't support equivalent functionality.

SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG

This flag maps to GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB in the GLX_ARB_create_context_robustness extension for X11 and WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB in the WGL_ARB_create_context_robustness extension for Windows. This flag is currently ignored on other targets that don't support equivalent functionality.

SDL_GL_CONTEXT_RESET_ISOLATION_FLAG

This flag maps to GLX_CONTEXT_RESET_ISOLATION_BIT_ARB in the GLX_ARB_robustness_isolation extension for X11 and WGL_CONTEXT_RESET_ISOLATION_BIT_ARB in the WGL_ARB_create_context_robustness extension for Windows. This flag is currently ignored on other targets that don't support equivalent functionality.


CategoryEnum, CategoryVideo

None: SDL_GLcontextFlag (last edited 2015-09-17 21:47:42 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit