Mercurial > sdl-ios-xcode
diff include/SDL_video.h @ 1936:83946ee0ff1f
Implemented OpenGL support on Mac OS X
The OpenGL renderer works without changes, yay! :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 25 Jul 2006 06:22:42 +0000 |
parents | 307355678142 |
children | ba0d62354872 |
line wrap: on
line diff
--- a/include/SDL_video.h Mon Jul 24 23:30:14 2006 +0000 +++ b/include/SDL_video.h Tue Jul 25 06:22:42 2006 +0000 @@ -1444,6 +1444,10 @@ * * \return 0 on success, or -1 if the library couldn't be loaded * + * This should be done after initializing the video driver, but before + * creating any OpenGL windows. If no OpenGL library is loaded, the default + * library will be loaded upon creation of the first OpenGL window. + * * \note If you do this, you need to retrieve all of the GL functions used in * your program from the dynamic library using SDL_GL_GetProcAddress(). * @@ -1476,11 +1480,9 @@ /** * \fn int SDL_GL_GetWindowAttribute(SDL_WindowID windowID, SDL_GLattr attr, int *value) * - * \brief Get the actual value for an OpenGL window attribute. + * \brief Get the actual value for an attribute from the current context. */ -extern DECLSPEC int SDLCALL SDL_GL_GetWindowAttribute(SDL_WindowID windowID, - SDL_GLattr attr, - int *value); +extern DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int *value); /** * \fn SDL_GLContext SDL_GL_CreateContext(SDL_WindowID windowID)