DOKK / manpages / debian 12 / libsdl1.2-dev / SDL_GLattr.3.en
SDL_GLattr(3) SDL API Reference SDL_GLattr(3)

SDL_GLattr - SDL GL Attributes

Size of the framebuffer red component, in bits
Size of the framebuffer green component, in bits
Size of the framebuffer blue component, in bits
Size of the framebuffer alpha component, in bits
0 or 1, enable or disable double buffering
Size of the framebuffer, in bits
Size of the depth buffer, in bits
Size of the stencil buffer, in bits
Size of the accumulation buffer red component, in bits
Size of the accumulation buffer green component, in bits
Size of the accumulation buffer blue component, in bits
Size of the accumulation buffer alpha component, in bits

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

SDL_GL_SetAttribute, SDL_GL_GetAttribute

Tue 11 Sep 2001, 23:01 SDL