comparison include/SDL_video.h @ 1912:8d384b647307

Setting up the OpenGL support
author Sam Lantinga <slouken@libsdl.org>
date Sun, 16 Jul 2006 09:34:01 +0000
parents 06c27a737b7a
children 8a162bfdc838
comparison
equal deleted inserted replaced
1911:7577fd11cee4 1912:8d384b647307
1497 /** 1497 /**
1498 * \fn int SDL_GL_SetSwapInterval(int interval) 1498 * \fn int SDL_GL_SetSwapInterval(int interval)
1499 * 1499 *
1500 * \brief Set the swap interval for the current OpenGL context. 1500 * \brief Set the swap interval for the current OpenGL context.
1501 * 1501 *
1502 * \param interval 0 for immediate updates, 1 for updates synchronized with the vertical retrace
1503 *
1504 * \return 0 on success, or -1 if setting the swap interval is not supported.
1505 *
1502 * \sa SDL_GL_GetSwapInterval() 1506 * \sa SDL_GL_GetSwapInterval()
1503 */ 1507 */
1504 extern DECLSPEC int SDLCALL SDL_GL_SetSwapInterval(int interval); 1508 extern DECLSPEC int SDLCALL SDL_GL_SetSwapInterval(int interval);
1505 1509
1506 /** 1510 /**
1507 * \fn int SDL_GL_GetSwapInterval(void) 1511 * \fn int SDL_GL_GetSwapInterval(void)
1508 * 1512 *
1509 * \brief Get the swap interval for the current OpenGL context. 1513 * \brief Get the swap interval for the current OpenGL context.
1510 * 1514 *
1515 * \return 0 if there is no vertical retrace synchronization, 1 if the buffer swap is synchronized with the vertical retrace, and -1 if getting the swap interval is not supported.
1516 *
1511 * \sa SDL_GL_SetSwapInterval() 1517 * \sa SDL_GL_SetSwapInterval()
1512 */ 1518 */
1513 extern DECLSPEC int SDLCALL SDL_GL_GetSwapInterval(void); 1519 extern DECLSPEC int SDLCALL SDL_GL_GetSwapInterval(void);
1514 1520
1515 /** 1521 /**
1516 * \fn void SDL_GL_SwapBuffers(void) 1522 * \fn void SDL_GL_SwapWindow(SDL_WindowID windowID)
1517 * 1523 *
1518 * Swap the OpenGL buffers, if double-buffering is supported. 1524 * \brief Swap the OpenGL buffers for the window, if double-buffering is supported.
1519 */ 1525 */
1520 extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void); 1526 extern DECLSPEC void SDLCALL SDL_GL_SwapWindow(SDL_WindowID windowID);
1521 1527
1522 /** 1528 /**
1523 * \fn void SDL_GL_DeleteContext(SDL_GLContext context) 1529 * \fn void SDL_GL_DeleteContext(SDL_GLContext context)
1524 * 1530 *
1525 * \brief Delete an OpenGL context. 1531 * \brief Delete an OpenGL context.