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):