glutSetCursor

changes the cursor image of the current window.

Signature

glutSetCursor( int( cursor ) )-> void
glutSetCursor( cursor )
glutSetCursor( c_int(cursor) ) -> None

Parameters

VariablesDescription
cursor
Name of cursor image to change to. Possible values follow:

Description

glutSetCursor changes the cursor image of the current window. Each call requests the window system change the cursor appropriately. The cursor image when a window is created is GLUT_CURSOR_INHERIT . The exact cursor images used are implementation dependent. The intent is for the image to convey the meaning of the cursor name. For a top-level window, GLUT_CURSOR_INHERIT uses the default window system cursor.

X Implementation Notes

GLUT for X uses SGI's _SGI_CROSSHAIR_CURSOR convention to access a full-screen cross-hair cursor if possible.

See Also

glutCreateWindow glutCreateSubWindow