1SDL_GL_GetAttribute(3) SDL API Reference SDL_GL_GetAttribute(3)
2
3
4
6 SDL_GL_GetAttribute - Get the value of a special SDL/OpenGL attribute
7
9 #include "SDL.h"
10
11 int SDL_GL_GetAttribute(SDLGLattr attr, int *value);
12
14 Places the value of the SDL/OpenGL attribute attr into value. This is
15 useful after a call to SDL_SetVideoMode to check whether your
16 attributes have been set as you expected.
17
19 Returns 0 on success, or -1 on an error.
20
22 SDL_GL_SetAttribute, GL Attributes
23
24
25
26SDL Tue 11 Sep 2001, 23:01 SDL_GL_GetAttribute(3)