include/SDL_video.h
branchSDL-1.3
changeset 1660 8b9d79e7eacf
parent 1658 e49147870aac
child 1662 782fd950bd46
     1.1 --- a/include/SDL_video.h	Wed May 17 08:18:28 2006 +0000
     1.2 +++ b/include/SDL_video.h	Sat May 20 04:35:58 2006 +0000
     1.3 @@ -224,6 +224,12 @@
     1.4  
     1.5  /* Function prototypes */
     1.6  
     1.7 +/* These functions return the list of built in video drivers, in the 
     1.8 + * order that they are normally initialized by default.
     1.9 + */
    1.10 +extern DECLSPEC int SDLCALL SDL_GetNumVideoDrivers(void);
    1.11 +extern DECLSPEC const char * SDLCALL SDL_GetVideoDriver(int index);
    1.12 +
    1.13  /* These functions are used internally, and should not be used unless you
    1.14   * have a specific need to specify the video driver you want to use.
    1.15   * You should normally use SDL_Init() or SDL_InitSubSystem().
    1.16 @@ -240,11 +246,10 @@
    1.17  extern DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name, Uint32 flags);
    1.18  extern DECLSPEC void SDLCALL SDL_VideoQuit(void);
    1.19  
    1.20 -/* This function fills the given character buffer with the name of the
    1.21 - * video driver, and returns a pointer to it if the video driver has
    1.22 - * been initialized.  It returns NULL if no driver has been initialized.
    1.23 +/* This function returns the name of the current video driver, or NULL
    1.24 + * if no driver has been initialized.
    1.25   */
    1.26 -extern DECLSPEC char * SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
    1.27 +extern DECLSPEC const char * SDLCALL SDL_GetCurrentVideoDriver(void);
    1.28  
    1.29  /*
    1.30   * This function returns a pointer to the current display surface.