1UNTITLED LOCAL UNTITLED
2
4 glutSetCursor — Set the cursor image to be used for the current window
5
7 OpenGLUT - window
8
10 #include <openglut.h>
11
12 void
13 glutSetCursor(int cursorID);
14
16 cursorID Name of desired cursor.
17
19 For the current window , sets the mouse-cursor to one of a set of pre‐
20 defined images. The GLUT symbolic constant IDs are:
21
22 - GLUT_CURSOR_RIGHT_ARROW
23 - GLUT_CURSOR_LEFT_ARROW
24 - GLUT_CURSOR_INFO
25 - GLUT_CURSOR_DESTROY
26 - GLUT_CURSOR_HELP
27 - GLUT_CURSOR_CYCLE
28 - GLUT_CURSOR_SPRAY
29 - GLUT_CURSOR_WAIT
30 - GLUT_CURSOR_TEXT
31 - GLUT_CURSOR_CROSSHAIR
32 - GLUT_CURSOR_UP_DOWN
33 - GLUT_CURSOR_LEFT_RIGHT
34 - GLUT_CURSOR_TOP_SIDE
35 - GLUT_CURSOR_BOTTOM_SIDE
36 - GLUT_CURSOR_LEFT_SIDE
37 - GLUT_CURSOR_RIGHT_SIDE
38 - GLUT_CURSOR_TOP_LEFT_CORNER
39 - GLUT_CURSOR_TOP_RIGHT_CORNER
40 - GLUT_CURSOR_BOTTOM_RIGHT_CORNER
41 - GLUT_CURSOR_BOTTOM_LEFT_CORNER
42
43 Additionally, there are the following special cases:
44
45 GLUT_CURSOR_FULL_CROSSHAIR This cursor, where supported, draws a
46 crosshair the full width and height of the display. It may be mapped by
47 OpenGLUT to the GLUT_CURSOR_CROSSHAIR, however.
48
49 GLUT_CURSOR_NONE Turn the mouse cursor invisibile.
50
51 GLUT_CURSOR_INHERIT Take the cursor that the parent window provides.
52
54 The X branch of OpenGLUT does not do thorough error checking.
55
56 The X branch of OpenGLUT always converts FULL_CROSSHAIR to CROSSHAIR.
57 This is acceptable, but if a host system supports a fullscreen
58 crosshair, it would be nice to support that.
59
60 Out of range cursorID values generate warnings.
61
62 Has no visible effect if the current window is of type GLUT_OFFSCREEN
63 .
64
66 Some cursorID values are not yet supported on WIN32.
67
68 Epoch