Tao.Sdl SDK Documentation

Sdl.SDL_GL_SetAttribute Method 

Set a special SDL/OpenGL attribute.

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

Parameters

attr
SDL_GLattr enum
val

Return Value

Returns 0 on success, or -1 on error.

Remarks

Sets the OpenGL attribute attr to value. The attributes you set don't take effect until after a call to SDL_SetVideoMode. You should use SDL_GL_GetAttribute to check the values after a SDL_SetVideoMode call.

Binds to C-function call in SDL_video.h:

int SDL_GL_SetAttribute(SDL_GLattr attr, int value);
            

See Also

Sdl Class | Tao.Sdl Namespace | SDL_GL_GetAttribute