Added SDL_GetDisplayName(), with implementation for Mac OS X

This commit is contained in:
Sam Lantinga 2012-12-31 11:07:46 -08:00
parent 5e519b21ed
commit ce28a79602
5 changed files with 49 additions and 2 deletions

View file

@ -269,6 +269,15 @@ extern DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver(void);
*/
extern DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void);
/**
* \brief Get the name of a display in UTF-8 encoding
*
* \return The name of a display, or NULL for an invalid display index.
*
* \sa SDL_GetNumVideoDisplays()
*/
extern DECLSPEC const char * SDLCALL SDL_GetDisplayName(int displayIndex);
/**
* \brief Get the desktop area represented by a display, with the primary
* display located at 0,0