home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / GLUT-3.7 / LIB / GLSMAP / smap_setfunc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-12  |  517 b   |  21 lines

  1.  
  2. /* Copyright (c) Mark J. Kilgard, 1998.  */
  3.  
  4. /* This program is freely distributable without licensing fees
  5.    and is provided without guarantee or warrantee expressed or
  6.    implied. This program is -not- in the public domain. */
  7.  
  8. #include "glsmapint.h"
  9.  
  10. void smapSetPositionLightsFunc(SphereMap *smap,
  11.     void (*positionLights)(int view, void *context))
  12. {
  13.     smap->positionLights = positionLights;
  14. }
  15.  
  16. void smapSetDrawViewFunc(SphereMap *smap,
  17.     void (*drawView)(int view, void *context))
  18. {
  19.     smap->drawView = drawView;
  20. }
  21.