Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2010-08-04 01:00:50
Size: 1308
Editor: SheenaSmith
Comment: update content (old wiki)
Revision 4 as of 2010-08-04 01:18:13
Size: 1326
Editor: SheenaSmith
Comment: update content
Deletions are marked like this. Additions are marked like this.
Line 29: Line 29:
*<<BR>>[[SDL_GL_GetAttribute]]() 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.<<BR>>* *<<BR>>[[SDL_GL_GetAttribute]]() places the value of the SDL/OpenGL attribute '''attr''' into '''value'''. This is useful after ,,a call to [[SDL_SetVideoMode]](),, ^initializing the video driver^ to check whether your attributes have been set as you expected.<<BR>>*
Line 31: Line 31:
<<Color2(green,Can't find SDL_!SetVideoMode.  Has it been replaced by a function with a different name? Found SDL_!GetDisplayMode as the next closest sounding function.)>> <<Color2(green,Can't find SDL_!SetVideoMode. Has it been replaced? Is the superscript from SDL_!GL_!LoadLibrary the correct replacement for the above?)>>

DRAFT

SDL_GL_GetAttribute

Use this function to get the actual value for an attribute from the current context.

Syntax

int SDL_GL_GetAttribute(SDL_GLattr attr,
                        int*       value)

Function Parameters

attr

the SDL_GLattr to be queried

value

a pointer to be filled in with the current value of attr

Return Value

Returns 0 on success or a negative error code * -1 * on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

*
SDL_GL_GetAttribute() places the value of the SDL/OpenGL attribute attr into value. This is useful after a call to [[SDL_SetVideoMode]]() initializing the video driver to check whether your attributes have been set as you expected.
*

green


CategoryAPI, CategoryVideo

None: SDL_GL_GetAttribute (last edited 2014-02-08 20:53:11 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit