SDL_CreateCursor?
NAME SYNOPSIS DESCRIPTION EXAMPLE SEE ALSO
SDL_CreateCursor?- Creates a new mouse cursor.
#include
SDL_Cursor *SDL_CreateCursor?(__Uint8 *data, Uint8
Create a cursor using the specified data and mask (in MSB format). The cursor width must be a multiple of 8 bits.
The cursor is created in black and white according to the following:
Data / Mask Resulting pixel on screen
0 / 1 White
1 / 1 Black
0 / 0 Transparent
1 / 0 Inverted color if possible, black if not.
Cursors created with this function must be freed with SDL_FreeCursor?.
/* Stolen from the mailing list / / Creates a new mouse cursor from an XPM / / XPM / static const char *arrow[? = { / width height num_colors chars_per_pixel */
SDL_FreeCursor?, SDL_SetCursor?, SDL_ShowCursor?
One page links to SDL_CreateCursor(3):