Differences between current version and predecessor to the previous major change of SDL_GL_SetAttribute(3).
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Monday, June 3, 2002 6:53:42 pm | by perry | |
Older page: | version 1 | Last edited on Monday, June 3, 2002 6:53:42 pm | by perry | Revert |
@@ -1,6 +1,6 @@
-SDL_GL_SetAttribute
-!!!SDL_GL_SetAttribute
+SDL_GL_!
SetAttribute
+!!!SDL_GL_!
SetAttribute
NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
@@ -9,39 +9,39 @@
----
!!NAME
-SDL_GL_SetAttribute- Set a special SDL/OpenGL attribute
+SDL_GL_!
SetAttribute- Set a special SDL/OpenGL attribute
!!SYNOPSIS
__#include __
-__int SDL_GL_SetAttribute__(__SDL_GLattr attr, int
+__int SDL_GL_!
SetAttribute__(__SDL_GLattr attr, int
value__);
!!DESCRIPTION
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.
+after a call to __SDL_!
SetVideoMode__. You should use
+__SDL_GL_!
GetAttribute__ to check the values after a
+__SDL_!
SetVideoMode__ call.
!!RETURN VALUE
Returns __0__ on success, or __-1__ on
error.
!!EXAMPLE
-SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 );
-SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 );
-SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 );
-SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
-SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
-if ( (screen=SDL_SetVideoMode( 640, 480, 16, SDL_OPENGL )) == NULL ) {
+SDL_GL_!
SetAttribute( SDL_GL_RED_SIZE, 5 );
+SDL_GL_!
SetAttribute( SDL_GL_GREEN_SIZE, 5 );
+SDL_GL_!
SetAttribute( SDL_GL_BLUE_SIZE, 5 );
+SDL_GL_!
SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
+SDL_GL_!
SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
+if ( (screen=SDL_!
SetVideoMode( 640, 480, 16, SDL_OPENGL )) == NULL ) {
fprintf(stderr,
__Note:__
@@ -53,7 +53,7 @@
SDL_GL_DOUBLEBUFFER attribute.
!!SEE ALSO
-__SDL_GL_GetAttribute__, ''GL
+__SDL_GL_!
GetAttribute__, ''GL
Attributes''
----