include/SDL_video.h
branchSDL-1.3
changeset 1660 8b9d79e7eacf
parent 1658 e49147870aac
child 1662 782fd950bd46
equal deleted inserted replaced
1659:14717b52abc0 1660:8b9d79e7eacf
   222 #define SDL_LOGPAL 0x01
   222 #define SDL_LOGPAL 0x01
   223 #define SDL_PHYSPAL 0x02
   223 #define SDL_PHYSPAL 0x02
   224 
   224 
   225 /* Function prototypes */
   225 /* Function prototypes */
   226 
   226 
       
   227 /* These functions return the list of built in video drivers, in the 
       
   228  * order that they are normally initialized by default.
       
   229  */
       
   230 extern DECLSPEC int SDLCALL SDL_GetNumVideoDrivers(void);
       
   231 extern DECLSPEC const char * SDLCALL SDL_GetVideoDriver(int index);
       
   232 
   227 /* These functions are used internally, and should not be used unless you
   233 /* These functions are used internally, and should not be used unless you
   228  * have a specific need to specify the video driver you want to use.
   234  * have a specific need to specify the video driver you want to use.
   229  * You should normally use SDL_Init() or SDL_InitSubSystem().
   235  * You should normally use SDL_Init() or SDL_InitSubSystem().
   230  *
   236  *
   231  * SDL_VideoInit() initializes the video subsystem -- sets up a connection
   237  * SDL_VideoInit() initializes the video subsystem -- sets up a connection
   238  * you won't be able to set full-screen display modes.
   244  * you won't be able to set full-screen display modes.
   239  */
   245  */
   240 extern DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name, Uint32 flags);
   246 extern DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name, Uint32 flags);
   241 extern DECLSPEC void SDLCALL SDL_VideoQuit(void);
   247 extern DECLSPEC void SDLCALL SDL_VideoQuit(void);
   242 
   248 
   243 /* This function fills the given character buffer with the name of the
   249 /* This function returns the name of the current video driver, or NULL
   244  * video driver, and returns a pointer to it if the video driver has
   250  * if no driver has been initialized.
   245  * been initialized.  It returns NULL if no driver has been initialized.
   251  */
   246  */
   252 extern DECLSPEC const char * SDLCALL SDL_GetCurrentVideoDriver(void);
   247 extern DECLSPEC char * SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
       
   248 
   253 
   249 /*
   254 /*
   250  * This function returns a pointer to the current display surface.
   255  * This function returns a pointer to the current display surface.
   251  * If SDL is doing format conversion on the display surface, this
   256  * If SDL is doing format conversion on the display surface, this
   252  * function returns the publicly visible surface, not the real video
   257  * function returns the publicly visible surface, not the real video