home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / GLUT / lib / glut / glut_dials.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-11  |  721 b   |  26 lines

  1. /* Copyright (c) Mark J. Kilgard, 1994. */
  2.  
  3. /* This program is freely distributable without licensing fees
  4.    and is provided without guarantee or warrantee expressed or
  5.    implied. This program is -not- in the public domain. */
  6.  
  7. #include "glutint.h"
  8.  
  9. void
  10. glutButtonBoxFunc(GLUTbuttonBoxCB buttonBoxFunc)
  11. {
  12.   __glutCurrentWindow->buttonBox = buttonBoxFunc;
  13.   __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
  14.   __glutPutOnWorkList(__glutCurrentWindow,
  15.     GLUT_DEVICE_MASK_WORK);
  16. }
  17.  
  18. void
  19. glutDialsFunc(GLUTdialsCB dialsFunc)
  20. {
  21.   __glutCurrentWindow->dials = dialsFunc;
  22.   __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
  23.   __glutPutOnWorkList(__glutCurrentWindow,
  24.     GLUT_DEVICE_MASK_WORK);
  25. }
  26.