Mercurial > sdl-ios-xcode
comparison include/SDL_video.h @ 1926:307355678142
Added SDL_GL_ExtensionSupported()
Use GL_ARB_texture_rectangle in the OpenGL renderer, if supported.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 22 Jul 2006 21:58:17 +0000 |
parents | 8a162bfdc838 |
children | 83946ee0ff1f |
comparison
equal
deleted
inserted
replaced
1925:411bfb37082b | 1926:307355678142 |
---|---|
1457 * \brief Get the address of an OpenGL function. | 1457 * \brief Get the address of an OpenGL function. |
1458 */ | 1458 */ |
1459 extern DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc); | 1459 extern DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc); |
1460 | 1460 |
1461 /** | 1461 /** |
1462 * \fn SDL_bool SDL_GL_ExtensionSupported(const char *extension) | |
1463 * | |
1464 * \brief Return true if an OpenGL extension is supported for the current context. | |
1465 */ | |
1466 extern DECLSPEC SDL_bool SDLCALL SDL_GL_ExtensionSupported(const char | |
1467 *extension); | |
1468 | |
1469 /** | |
1462 * \fn int SDL_GL_SetAttribute(SDL_GLattr attr, int value) | 1470 * \fn int SDL_GL_SetAttribute(SDL_GLattr attr, int value) |
1463 * | 1471 * |
1464 * \brief Set an OpenGL window attribute before window creation. | 1472 * \brief Set an OpenGL window attribute before window creation. |
1465 */ | 1473 */ |
1466 extern DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value); | 1474 extern DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value); |