home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 5 / MA_Cover_5.iso / ppc / mesa / src-glut / glut_dials.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-31  |  741 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 APIENTRY 
  10. glutButtonBoxFunc(GLUTbuttonBoxCB buttonBoxFunc)
  11. {
  12.   __glutCurrentWindow->buttonBox = buttonBoxFunc;
  13.   __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
  14.   __glutPutOnWorkList(__glutCurrentWindow,
  15.     GLUT_DEVICE_MASK_WORK);
  16. }
  17.  
  18. void APIENTRY 
  19. glutDialsFunc(GLUTdialsCB dialsFunc)
  20. {
  21.   __glutCurrentWindow->dials = dialsFunc;
  22.   __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
  23.   __glutPutOnWorkList(__glutCurrentWindow,
  24.     GLUT_DEVICE_MASK_WORK);
  25. }
  26.