SDL_GL_SetSwapInterval

Use this function to set the swap interval for the current OpenGL context.

Syntax

int SDL_GL_SetSwapInterval(int interval)

Function Parameters

interval

0 for immediate updates, 1 for updates synchronized with the vertical retrace

Return Value

Returns 0 on success or -1 if setting the swap interval is not supported; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryVideo

SDL_GL_SetSwapInterval (last edited 2010-08-30 00:54:39 by SheenaSmith)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit