home *** CD-ROM | disk | FTP | other *** search
/ Amiga Magazin: Amiga-CD 2000 April & May / AMIGA_2000_04.iso / patches / mesa3.1 / mesa-glut.lha / src-glut.aos / glutGetSetMenu.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-24  |  410 b   |  26 lines

  1. /*
  2.  * glutGetSetMenu.c
  3.  *
  4.  * Version 1.0  27 Jun 1998
  5.  * by Jarno van der Linden
  6.  * jarno@kcbbs.gen.nz
  7.  *
  8.  */
  9.  
  10. #include "glutstuff.h"
  11.  
  12. void glutSetMenu(int menu)
  13. {
  14.   struct GlutMenu *gm;
  15.  
  16.   if((gm = stuffGetMenu(menu)))
  17.     stuffMakeCurrentMenu(gm);
  18.   else
  19.     DEBUGOUT(1, "somethings wrong in glutSetMenu(%d)\n", menu);
  20. }
  21.  
  22. int glutGetMenu(void)
  23. {
  24.   return glutstuff.curmenu ? glutstuff.curmenu->MenuID : 0;
  25. }
  26.