SDL_GLattr

SDL_GLattr -- SDL GL Attributes

Attribute list

Full list of SDL OpenGL attributes

SDL_GL_RED_SIZE

Size of the framebuffer red component, in bits.

SDL_GL_GREEN_SIZE

Size of the framebuffer green component, in bits.

SDL_GL_BLUE_SIZE

Size of the framebuffer blue component, in bits.

SDL_GL_ALPHA_SIZE

Size of the framebuffer alpha component, in bits.

SDL_GL_BUFFER_SIZE

Size of the framebuffer, in bits.

SDL_GL_DOUBLEBUFFER

Enable or disable double buffering (0 or 1).

SDL_GL_DEPTH_SIZE

Size of the depth buffer, in bits.

SDL_GL_STENCIL_SIZE

Size of the stencil buffer, in bits.

SDL_GL_ACCUM_RED_SIZE

Size of the accumulation buffer red component, in bits.

SDL_GL_ACCUM_GREEN_SIZE

Size of the accumulation buffer green component, in bits.

SDL_GL_ACCUM_BLUE_SIZE

Size of the accumulation buffer blue component, in bits.

SDL_GL_ACCUM_ALPHA_SIZE

Size of the accumulation buffer alpha component, in bits.

SDL_GL_STEREO

Enable or disable stereo (left and right) buffers (0 or 1).

SDL_GL_MULTISAMPLEBUFFERS

Number of multisample buffers (0 or 1). *

SDL_GL_MULTISAMPLESAMPLES

Number of samples per pixel when multisampling is enabled. *

SDL_GL_SWAP_CONTROL

Vsync: swap buffers every n'th retrace (0 to disable, 1 is the default). Deprecated in 1.3.0 **

SDL_GL_ACCELERATED_VISUAL

Guarantee hardware acceleration (0 or 1) **

* Requires the GL_ARB_multisample extension.
** Available since SDL 1.2.10

Description

While you can set most OpenGL attributes normally, the attributes listed above must be known before SDL sets the video mode. These attributes are set and read with SDL_GL_SetAttribute and SDL_GL_GetAttribute.

See also

SDL_GL_SetAttribute, SDL_GL_GetAttribute

Requirements

Header

SDL.h

Version

1.2.13

Shared object

libSDL.so

DLL

SDL.dll


CategorySDLVideo

SDL_GLattr (last edited 2008-08-27 20:14:13 by NeoNeurone)