|
Size: 1326
Comment: update content
|
Size: 919
Comment: update content (w/ Sam); remove 'draft' note
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 17: | Line 17: |
| ||'''attr'''||the [[SDL_GLattr]] to be queried|| | ||'''attr'''||the [[SDL_GLattr]] to query|| |
| Line 21: | Line 21: |
| Returns 0 on success or ,,a negative error code,, ^* -1 *^ on failure; call [[SDL_GetError]]() for more information. | Returns 0 on success or a negative error code on failure; call [[SDL_GetError]]() for more information. |
| 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]](),, ^initializing the video driver^ to check whether your attributes have been set as you expected.<<BR>>* <<Color2(green,Can't find SDL_!SetVideoMode. Has it been replaced? Is the superscript from SDL_!GL_!LoadLibrary the correct replacement for the above?)>> |
''You can add useful comments here'' |
DRAFT |
SDL_GL_GetAttribute
Use this function to get the actual value for an attribute from the current context.
Contents
Syntax
int SDL_GL_GetAttribute(SDL_GLattr attr,
int* value)
Function Parameters
attr |
the SDL_GLattr to query |
value |
a pointer to be filled in with the current value of attr |
Return Value
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
You can add useful comments here
