SDL_GL_GetAttribute - Man Page

Get the value of a special SDL/OpenGL attribute


#include "SDL.h"

int SDL_GL_GetAttribute(SDLGLattr attr, int *value);


Places the value of the SDL/OpenGL attribute attr into value. This is useful after a call to SDL_SetVideoMode to check whether your attributes have been set as you expected.

Return Value

Returns 0 on success, or -1 on an error.

See Also

SDL_GL_SetAttribute, GL Attributes

Referenced By

SDL_GLattr(3), SDL_GL_SetAttribute(3).

Tue 11 Sep 2001, 23:01 SDL API Reference