Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2011-03-18 19:08:34
Size: 1156
Editor: SheenaSmith
Comment: create page - 3/15 ef1db08c40ac (3/11 5665ccbd6792)
Revision 2 as of 2011-03-22 18:07:27
Size: 959
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 18: Line 17:
||'''surface'''||an [[SDL_Surface]] structure representing the cursor|| ||'''surface'''||an [[SDL_Surface]] structure representing the cursor image||
Line 33: Line 32:
<<Color2(green,Should it be mentioned that the cursor must be SDL_PIXELFORMAT_ARGB8888 and will be converted if the surface isn't already or is that internal only?)>>
Line 36: Line 33:
 .[[SDL_CreateCursor]]

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