Tao.Sdl SDK Documentation

Sdl.SDL_GL_GetAttribute Method 

Get the value of a special SDL/OpenGL attribute

[Visual Basic]
Public Shared Function SDL_GL_GetAttribute( _
   ByVal attr As Integer, _
   ByRef val As Integer _
) As Integer
[C#]
public static int SDL_GL_GetAttribute(
   int attr,
   out int val
);

Parameters

attr
SDL_GLattr enum
val

Return Value

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

Remarks

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.

Binds to C-function call in SDL_video.h:

int SDL_GL_GetAttribute(SDLGLattr attr, int *value)
            

See Also

Sdl Class | Tao.Sdl Namespace