Class SDL_GLAttr
An enumeration of OpenGL configuration attributes.
While you can set most OpenGL attributes normally, the attributes listed above must be known before SDL creates the window that will be used with the OpenGL context. These attributes are set and read with SDL_GL_SetAttribute() and SDL_GL_GetAttribute().
In some cases, these attributes are minimum requests; the GL does not promise to give you exactly what you asked for. It's possible to ask for a 16-bit depth buffer and get a 24-bit one instead, for example, or to ask for no stencil buffer and still have one available. Context creation should fail if the GL can't provide your requested attributes at a minimum, but you should check to see exactly what you got.
Since: This enum is available since SDL 3.2.0.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
-
Field Details
-
RED_SIZE
public static final int RED_SIZE- See Also:
-
GREEN_SIZE
public static final int GREEN_SIZE- See Also:
-
BLUE_SIZE
public static final int BLUE_SIZE- See Also:
-
ALPHA_SIZE
public static final int ALPHA_SIZE- See Also:
-
BUFFER_SIZE
public static final int BUFFER_SIZE- See Also:
-
DOUBLEBUFFER
public static final int DOUBLEBUFFER- See Also:
-
DEPTH_SIZE
public static final int DEPTH_SIZE- See Also:
-
STENCIL_SIZE
public static final int STENCIL_SIZE- See Also:
-
ACCUM_RED_SIZE
public static final int ACCUM_RED_SIZE- See Also:
-
ACCUM_GREEN_SIZE
public static final int ACCUM_GREEN_SIZE- See Also:
-
ACCUM_BLUE_SIZE
public static final int ACCUM_BLUE_SIZE- See Also:
-
ACCUM_ALPHA_SIZE
public static final int ACCUM_ALPHA_SIZE- See Also:
-
STEREO
public static final int STEREO- See Also:
-
MULTISAMPLEBUFFERS
public static final int MULTISAMPLEBUFFERS- See Also:
-
MULTISAMPLESAMPLES
public static final int MULTISAMPLESAMPLES- See Also:
-
ACCELERATED_VISUAL
public static final int ACCELERATED_VISUAL- See Also:
-
RETAINED_BACKING
public static final int RETAINED_BACKING- See Also:
-
CONTEXT_MAJOR_VERSION
public static final int CONTEXT_MAJOR_VERSION- See Also:
-
CONTEXT_MINOR_VERSION
public static final int CONTEXT_MINOR_VERSION- See Also:
-
CONTEXT_FLAGS
public static final int CONTEXT_FLAGS- See Also:
-
CONTEXT_PROFILE_MASK
public static final int CONTEXT_PROFILE_MASK- See Also:
-
SHARE_WITH_CURRENT_CONTEXT
public static final int SHARE_WITH_CURRENT_CONTEXT- See Also:
-
FRAMEBUFFER_SRGB_CAPABLE
public static final int FRAMEBUFFER_SRGB_CAPABLE- See Also:
-
CONTEXT_RELEASE_BEHAVIOR
public static final int CONTEXT_RELEASE_BEHAVIOR- See Also:
-
CONTEXT_RESET_NOTIFICATION
public static final int CONTEXT_RESET_NOTIFICATION- See Also:
-
CONTEXT_NO_ERROR
public static final int CONTEXT_NO_ERROR- See Also:
-
FLOATBUFFERS
public static final int FLOATBUFFERS- See Also:
-
EGL_PLATFORM
public static final int EGL_PLATFORM- See Also:
-
-
Method Details
-
explain
-