home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / GLUT-3.7 / LIB / GLSMAP / smap_setvec.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-12  |  641 b   |  34 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
  11. smapSetEyeVector(SphereMap *smap, GLfloat *eye)
  12. {
  13.     smap->eye[X] = eye[X];
  14.     smap->eye[Y] = eye[Y];
  15.     smap->eye[Z] = eye[Z];
  16. }
  17.  
  18. void
  19. smapSetUpVector(SphereMap *smap, GLfloat *up)
  20. {
  21.     smap->up[X] = up[X];
  22.     smap->up[Y] = up[Y];
  23.     smap->up[Z] = up[Z];
  24. }
  25.  
  26. void
  27. smapSetObjectVector(SphereMap *smap, GLfloat *obj)
  28. {
  29.     smap->obj[X] = obj[X];
  30.     smap->obj[Y] = obj[Y];
  31.     smap->obj[Z] = obj[Z];
  32. }
  33.  
  34.