home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / libray / liblight / projector.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-09  |  1.6 KB  |  60 lines

  1. /*
  2.  * projector.h
  3.  *
  4.  * Copyright (C) 1989, 1991, Craig E. Kolb
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  *
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  * Projector light source itself written and copyrighted by Greg Spencer and
  17.  * given to the Public Domain, with the above conditions.
  18.  *
  19.  * projector.h,v 4.1 1994/08/09 07:57:17 explorer Exp
  20.  *
  21.  * projector.h,v
  22.  * Revision 4.1  1994/08/09  07:57:17  explorer
  23.  * Bump version to 4.1
  24.  *
  25.  * Revision 1.1.1.1  1994/08/08  04:52:04  explorer
  26.  * Initial import.  This is a prerelease of 4.0.6enh3, or 4.1 possibly.
  27.  *
  28.  */
  29. #ifndef PROJECTOR_H
  30. #define PROJECTOR_H
  31.  
  32. /* Necessary to use ImageText stuff */
  33. #ifdef __SASC
  34. #include "/libtext/texture.h"
  35. #include "/libimage/image.h"
  36. #include "/libtext/imagetext.h"
  37. #else
  38. #include "../libtext/texture.h"
  39. #include "../libimage/image.h"
  40. #include "../libtext/imagetext.h"
  41. #endif
  42.  
  43. #define LightProjectorCreate(c,f,t,up,tex,xa,ua,fall) LightCreate( \
  44.             (LightRef)ProjectorCreate(f,t,up,tex,xa,ua,fall),\
  45.             ProjectorMethods(), c)
  46.  
  47. typedef struct {
  48.     Vector pos, dir, u,v;
  49.     Float uangle, vangle;
  50.     int falloff;
  51.     ImageText *image;
  52. } Projectorlight;
  53.  
  54. extern Projectorlight *ProjectorCreate();
  55. extern LightMethods *ProjectorMethods();
  56. extern int ProjectorIntens();
  57. extern void ProjectorDirection();
  58.  
  59. #endif /* PROJECTOR_H */
  60.