|
⇤ ← Revision 1 as of 2011-03-18 19:08:34
Size: 1156
Comment: create page - 3/15 ef1db08c40ac (3/11 5665ccbd6792)
|
Size: 959
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.
Contents
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
