include/SDL_video.h
changeset 7412 50211a1fd557
parent 7191 75360622e65f
child 7459 7c6bd424f819
equal deleted inserted replaced
7410:a9878830f05e 7412:50211a1fd557
   888  */
   888  */
   889 extern DECLSPEC int SDLCALL SDL_GL_MakeCurrent(SDL_Window * window,
   889 extern DECLSPEC int SDLCALL SDL_GL_MakeCurrent(SDL_Window * window,
   890                                                SDL_GLContext context);
   890                                                SDL_GLContext context);
   891 
   891 
   892 /**
   892 /**
       
   893  *  \brief Get the currently active OpenGL window.
       
   894  */
       
   895 extern DECLSPEC SDL_Window* SDLCALL SDL_GL_GetCurrentWindow(void);
       
   896 
       
   897 /**
       
   898  *  \brief Get the currently active OpenGL context.
       
   899  */
       
   900 extern DECLSPEC SDL_GLContext SDLCALL SDL_GL_GetCurrentContext(void);
       
   901 
       
   902 /**
   893  *  \brief Set the swap interval for the current OpenGL context.
   903  *  \brief Set the swap interval for the current OpenGL context.
   894  *
   904  *
   895  *  \param interval 0 for immediate updates, 1 for updates synchronized with the
   905  *  \param interval 0 for immediate updates, 1 for updates synchronized with the
   896  *                  vertical retrace. If the system supports it, you may
   906  *                  vertical retrace. If the system supports it, you may
   897  *                  specify -1 to allow late swaps to happen immediately
   907  *                  specify -1 to allow late swaps to happen immediately