equal
deleted
inserted
replaced
1442 * |
1442 * |
1443 * \param path The platform dependent OpenGL library name, or NULL to open the default OpenGL library |
1443 * \param path The platform dependent OpenGL library name, or NULL to open the default OpenGL library |
1444 * |
1444 * |
1445 * \return 0 on success, or -1 if the library couldn't be loaded |
1445 * \return 0 on success, or -1 if the library couldn't be loaded |
1446 * |
1446 * |
|
1447 * This should be done after initializing the video driver, but before |
|
1448 * creating any OpenGL windows. If no OpenGL library is loaded, the default |
|
1449 * library will be loaded upon creation of the first OpenGL window. |
|
1450 * |
1447 * \note If you do this, you need to retrieve all of the GL functions used in |
1451 * \note If you do this, you need to retrieve all of the GL functions used in |
1448 * your program from the dynamic library using SDL_GL_GetProcAddress(). |
1452 * your program from the dynamic library using SDL_GL_GetProcAddress(). |
1449 * |
1453 * |
1450 * \sa SDL_GL_GetProcAddress() |
1454 * \sa SDL_GL_GetProcAddress() |
1451 */ |
1455 */ |
1474 extern DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value); |
1478 extern DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value); |
1475 |
1479 |
1476 /** |
1480 /** |
1477 * \fn int SDL_GL_GetWindowAttribute(SDL_WindowID windowID, SDL_GLattr attr, int *value) |
1481 * \fn int SDL_GL_GetWindowAttribute(SDL_WindowID windowID, SDL_GLattr attr, int *value) |
1478 * |
1482 * |
1479 * \brief Get the actual value for an OpenGL window attribute. |
1483 * \brief Get the actual value for an attribute from the current context. |
1480 */ |
1484 */ |
1481 extern DECLSPEC int SDLCALL SDL_GL_GetWindowAttribute(SDL_WindowID windowID, |
1485 extern DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int *value); |
1482 SDL_GLattr attr, |
|
1483 int *value); |
|
1484 |
1486 |
1485 /** |
1487 /** |
1486 * \fn SDL_GLContext SDL_GL_CreateContext(SDL_WindowID windowID) |
1488 * \fn SDL_GLContext SDL_GL_CreateContext(SDL_WindowID windowID) |
1487 * |
1489 * |
1488 * \brief Create an OpenGL context for use with an OpenGL window, and make it current. |
1490 * \brief Create an OpenGL context for use with an OpenGL window, and make it current. |