ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



glutWarpPointer(3GLUT)                              GLUT                              glutWarpPointer(3GLUT)



NAME
       glutWarpPointer warps the pointer's location.

SYNTAX
       void glutWarpPointer(int x, int y);

ARGUMENTS
       x         X offset relative to the current window's origin (upper left).

       y         Y offset relative to the current window's origin (upper left).

DESCRIPTION
       glutWarpPointer  warps  the  window  system's pointer to a new location relative to the origin of the
       current window.  The new location will be offset x pixels on the X axis and y pixels on the  Y  axis.
       These parameters may be negative.  The warp is done immediately.

       If the pointer would be warped outside the screen's frame buffer region, the location will be clamped
       to the nearest screen edge.  The window system is allowed to further constrain the pointer's location
       in window system dependent ways.

       The  following is good advice that applies to glutWarpPointer: ``There is seldom any reason for call-ing calling
       ing this function. The pointer should normally be left to the user.'' (from Xlib's  XWarpPointer  man
       page.)

SEE ALSO
       glutMouseFunc(3G), glutMotionFunc(3G)


AUTHOR
       Mark J. Kilgard (mjk@nvidia.com)



GLUT                                                 3.7                              glutWarpPointer(3GLUT)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.