include/SDL_video.h
changeset 6296 b42657486c0d
parent 6138 4c64952a58fb
child 6370 93187f7f7d5d
     1.1 --- a/include/SDL_video.h	Mon Feb 20 20:56:52 2012 -0500
     1.2 +++ b/include/SDL_video.h	Mon Feb 20 23:37:57 2012 -0500
     1.3 @@ -182,9 +182,25 @@
     1.4      SDL_GL_ACCELERATED_VISUAL,
     1.5      SDL_GL_RETAINED_BACKING,
     1.6      SDL_GL_CONTEXT_MAJOR_VERSION,
     1.7 -    SDL_GL_CONTEXT_MINOR_VERSION
     1.8 +    SDL_GL_CONTEXT_MINOR_VERSION,
     1.9 +    SDL_GL_CONTEXT_FLAGS,
    1.10 +    SDL_GL_CONTEXT_PROFILE_MASK
    1.11  } SDL_GLattr;
    1.12  
    1.13 +typedef enum
    1.14 +{
    1.15 +    SDL_GL_CONTEXT_PROFILE_CORE           = 0x0001,
    1.16 +    SDL_GL_CONTEXT_PROFILE_COMPATIBILITY  = 0x0002,
    1.17 +    SDL_GL_CONTEXT_PROFILE_ES2            = 0x0004
    1.18 +} SDL_GLprofile;
    1.19 +
    1.20 +typedef enum
    1.21 +{
    1.22 +    SDL_GL_CONTEXT_DEBUG_FLAG              = 0x0001,
    1.23 +    SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG = 0x0002,
    1.24 +    SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG      = 0x0004
    1.25 +} SDL_GLcontextFlag;
    1.26 +
    1.27  
    1.28  /* Function prototypes */
    1.29