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 9f072787a7
commit 2d4e47a5a7
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.
*/