src/video/SDL_sysvideo.h
changeset 1913 83420da906a5
parent 1912 8d384b647307
child 1923 d4572b97b08f
equal deleted inserted replaced
1912:8d384b647307 1913:83420da906a5
   170     /* Initialize the native video subsystem, filling in the list
   170     /* Initialize the native video subsystem, filling in the list
   171        of displays for this driver, returning 0 or -1 if there's an error.
   171        of displays for this driver, returning 0 or -1 if there's an error.
   172      */
   172      */
   173     int (*VideoInit) (_THIS);
   173     int (*VideoInit) (_THIS);
   174 
   174 
       
   175     /* Reverse the effects VideoInit() -- called if VideoInit() fails
       
   176        or if the application is shutting down the video subsystem.
       
   177      */
       
   178     void (*VideoQuit) (_THIS);
       
   179 
   175     /* * * */
   180     /* * * */
   176     /* Display functions
   181     /* Display functions
   177      */
   182      */
   178 
   183 
   179     /* Get a list of the available display modes.
   184     /* Get a list of the available display modes.
   219 
   224 
   220     /* Get some platform dependent window information */
   225     /* Get some platform dependent window information */
   221       SDL_bool(*GetWindowWMInfo) (_THIS, SDL_Window * window,
   226       SDL_bool(*GetWindowWMInfo) (_THIS, SDL_Window * window,
   222                                   struct SDL_SysWMinfo * info);
   227                                   struct SDL_SysWMinfo * info);
   223 
   228 
   224     /* Reverse the effects VideoInit() -- called if VideoInit() fails
       
   225        or if the application is shutting down the video subsystem.
       
   226      */
       
   227     void (*VideoQuit) (_THIS);
       
   228 
       
   229     /* * * */
   229     /* * * */
   230     /* OpenGL support
   230     /* OpenGL support
   231      */
   231      */
   232     int (*GL_LoadLibrary) (_THIS, const char *path);
   232     int (*GL_LoadLibrary) (_THIS, const char *path);
   233     void *(*GL_GetProcAddress) (_THIS, const char *proc);
   233     void *(*GL_GetProcAddress) (_THIS, const char *proc);
   234     int (*GL_GetAttribute) (_THIS, SDL_GLattr attrib, int *value);
   234     int (*GL_GetWindowAttribute) (_THIS, SDL_Window * window,
       
   235                                   SDL_GLattr attrib, int *value);
   235       SDL_GLContext(*GL_CreateContext) (_THIS, SDL_Window * window);
   236       SDL_GLContext(*GL_CreateContext) (_THIS, SDL_Window * window);
   236     int (*GL_MakeCurrent) (_THIS, SDL_Window * window, SDL_GLContext context);
   237     int (*GL_MakeCurrent) (_THIS, SDL_Window * window, SDL_GLContext context);
   237     int (*GL_SetSwapInterval) (_THIS, int interval);
   238     int (*GL_SetSwapInterval) (_THIS, int interval);
   238     int (*GL_GetSwapInterval) (_THIS);
   239     int (*GL_GetSwapInterval) (_THIS);
   239     void (*GL_SwapWindow) (_THIS, SDL_Window * window);
   240     void (*GL_SwapWindow) (_THIS, SDL_Window * window);
   277     } gl_config;
   278     } gl_config;
   278 
   279 
   279     /* * * */
   280     /* * * */
   280     /* Data private to this driver */
   281     /* Data private to this driver */
   281     void *driverdata;
   282     void *driverdata;
   282     struct SDL_PrivateGLData *gl_data;
   283     struct SDL_GLDriverData *gl_data;
   283 
   284 
   284     /* * * */
   285     /* * * */
   285     /* The function used to dispose of this structure */
   286     /* The function used to dispose of this structure */
   286     void (*free) (_THIS);
   287     void (*free) (_THIS);
   287 };
   288 };