SDL_CreateColorCursor

Use this function to create a color cursor.

Syntax

SDL_Cursor* SDL_CreateColorCursor(SDL_Surface* surface,
                                  int          hot_x,
                                  int          hot_y)

Function Parameters

surface

an SDL_Surface structure representing the cursor image

hot_x

the x position of the cursor hot spot

hot_y

the y position of the cursor hot spot

Return Value

Returns the new cursor on success or NULL on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryMouse

SDL_CreateColorCursor (last edited 2011-05-17 18:07:07 by SheenaSmith)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit