Clone of mesa.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

glut_space.c 1.0KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (c) Mark J. Kilgard, 1994. */
  2. /* This program is freely distributable without licensing fees
  3. and is provided without guarantee or warrantee expressed or
  4. implied. This program is -not- in the public domain. */
  5. #include "glutint.h"
  6. void GLUTAPIENTRY
  7. glutSpaceballMotionFunc(GLUTspaceMotionCB spaceMotionFunc)
  8. {
  9. __glutCurrentWindow->spaceMotion = spaceMotionFunc;
  10. __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
  11. __glutPutOnWorkList(__glutCurrentWindow,
  12. GLUT_DEVICE_MASK_WORK);
  13. }
  14. void GLUTAPIENTRY
  15. glutSpaceballRotateFunc(GLUTspaceRotateCB spaceRotateFunc)
  16. {
  17. __glutCurrentWindow->spaceRotate = spaceRotateFunc;
  18. __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
  19. __glutPutOnWorkList(__glutCurrentWindow,
  20. GLUT_DEVICE_MASK_WORK);
  21. }
  22. void GLUTAPIENTRY
  23. glutSpaceballButtonFunc(GLUTspaceButtonCB spaceButtonFunc)
  24. {
  25. __glutCurrentWindow->spaceButton = spaceButtonFunc;
  26. __glutUpdateInputDeviceMaskFunc = __glutUpdateInputDeviceMask;
  27. __glutPutOnWorkList(__glutCurrentWindow,
  28. GLUT_DEVICE_MASK_WORK);
  29. }