Added a function to create color cursors: SDL_CreateColorCursor()

This commit is contained in:
Sam Lantinga 2011-03-11 14:14:38 -08:00
parent 3b5aaf8974
commit 27db584f54
3 changed files with 84 additions and 21 deletions

View file

@ -146,6 +146,15 @@ extern DECLSPEC SDL_Cursor *SDLCALL SDL_CreateCursor(const Uint8 * data,
int w, int h, int hot_x,
int hot_y);
/**
* \brief Create a color cursor.
*
* \sa SDL_FreeCursor()
*/
extern DECLSPEC SDL_Cursor *SDLCALL SDL_CreateColorCursor(SDL_Surface *surface,
int hot_x,
int hot_y);
/**
* \brief Set the active cursor.
*/