home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / libray / libtext / gradient.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-09  |  989 b   |  46 lines

  1. /*
  2.  * gradient.h
  3.  *
  4.  * Copyright (C) 1989, 1991, Craig E. Kolb, 1992, Lawrence Coffin
  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.  */
  17.  
  18. #ifndef GRADIENT_H
  19.  
  20. #define TextGradientCreate(s1,s2,S,d1,d2,T,R) \
  21.         TextCreate((TextRef)GradientCreate(s1,s2,S,d1,d2,T,R),GradientApply)
  22.  
  23.  
  24.  
  25. typedef struct {
  26.     Surface *surf1, *surf2;
  27.     Float start, stop;
  28.     int type, shape, rand;
  29. } Gradient;
  30.  
  31. #define LINEAR        0
  32. #define LOG        1
  33. #define REVLOG        2
  34.  
  35. #define PLANAR        0
  36. #define RADIAL        1
  37. #define SPHERICAL    2
  38.  
  39. #define NO 0
  40. #define YES 1
  41.  
  42. extern Gradient *GradientCreate();
  43. extern void GradientApply();
  44.  
  45. #endif GRADIENT_H
  46.