Wiki Page Content

Differences between revisions 7 and 8
Revision 7 as of 2013-10-13 12:21:55
Size: 1022
Comment: Corrected error in example.
Revision 8 as of 2014-01-11 18:56:10
Size: 1000
Comment: Removed * and BR.
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
*
Line 29: Line 29:
*<<BR>>This function sets the currently active cursor to the specified one. If the cursor is currently visible, the change will be immediately represented on the display. [[SDL_SetCursor]](NULL) can be used to force cursor redraw, if this is desired for any reason. <<BR>>* This function sets the currently active cursor to the specified one. If the cursor is currently visible, the change will be immediately represented on the display. [[SDL_SetCursor]](NULL) can be used to force cursor redraw, if this is desired for any reason.
Line 32: Line 32:
 .[[SDL_CreateCursor]] *
 .[[SDL_GetCursor]] *
 .[[SDL_ShowCursor]] *
 .[[SDL_CreateCursor]]
 .[[SDL_GetCursor]]
 .[[SDL_ShowCursor]]

DRAFT

SDL_SetCursor

Use this function to set the active cursor.

Syntax

void SDL_SetCursor(SDL_Cursor* cursor)

Function Parameters

cursor

a cursor to make active (Should this be linked to Remarks?)

Code Examples

int main(int argc, char** argv) {
     SDL_ShowCursor(SDL_DISABLE);
     ...
}
/* creates a blank cursor */

Remarks

This function sets the currently active cursor to the specified one. If the cursor is currently visible, the change will be immediately represented on the display. SDL_SetCursor(NULL) can be used to force cursor redraw, if this is desired for any reason.


CategoryAPI, CategoryMouse

None: SDL_SetCursor (last edited 2014-10-04 06:56:05 by RyanGordon)

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