include/SDL_video.h
changeset 1936 83946ee0ff1f
parent 1926 307355678142
child 1956 ba0d62354872
     1.1 --- a/include/SDL_video.h	Mon Jul 24 23:30:14 2006 +0000
     1.2 +++ b/include/SDL_video.h	Tue Jul 25 06:22:42 2006 +0000
     1.3 @@ -1444,6 +1444,10 @@
     1.4   *
     1.5   * \return 0 on success, or -1 if the library couldn't be loaded
     1.6   *
     1.7 + * This should be done after initializing the video driver, but before
     1.8 + * creating any OpenGL windows.  If no OpenGL library is loaded, the default
     1.9 + * library will be loaded upon creation of the first OpenGL window.
    1.10 + *
    1.11   * \note If you do this, you need to retrieve all of the GL functions used in
    1.12   *       your program from the dynamic library using SDL_GL_GetProcAddress().
    1.13   *
    1.14 @@ -1476,11 +1480,9 @@
    1.15  /**
    1.16   * \fn int SDL_GL_GetWindowAttribute(SDL_WindowID windowID, SDL_GLattr attr, int *value)
    1.17   *
    1.18 - * \brief Get the actual value for an OpenGL window attribute.
    1.19 + * \brief Get the actual value for an attribute from the current context.
    1.20   */
    1.21 -extern DECLSPEC int SDLCALL SDL_GL_GetWindowAttribute(SDL_WindowID windowID,
    1.22 -                                                      SDL_GLattr attr,
    1.23 -                                                      int *value);
    1.24 +extern DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int *value);
    1.25  
    1.26  /**
    1.27   * \fn SDL_GLContext SDL_GL_CreateContext(SDL_WindowID windowID)