Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2011-03-22 18:07:27
Size: 959
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Revision 3 as of 2011-05-17 18:07:07
Size: 958
Editor: SheenaSmith
Comment: minor change
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
Returns the new cursor on success, or NULL on failure; call [[SDL_GetError]]() for more information. Returns the new cursor on success or NULL on failure; call [[SDL_GetError]]() for more information.

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

None: SDL_CreateColorCursor (last edited 2016-04-15 21:44:51 by PhilippWiesemann)

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