Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
1935:8a9b367a80f3 | 1936:83946ee0ff1f |
---|---|
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. |