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

  1. /*
  2.  * sampling.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.  * sampling.h,v 4.1 1994/08/09 07:55:08 explorer Exp
  17.  *
  18.  * sampling.h,v
  19.  * Revision 4.1  1994/08/09  07:55:08  explorer
  20.  * Bump version to 4.1
  21.  *
  22.  * Revision 1.1.1.1  1994/08/08  04:52:01  explorer
  23.  * Initial import.  This is a prerelease of 4.0.6enh3, or 4.1 possibly.
  24.  *
  25.  * Revision 4.0  91/07/17  14:32:01  kolb
  26.  * Initial version.
  27.  * 
  28.  */
  29. #ifndef SAMPLING_H
  30. #define SAMPLING_H
  31.  
  32. /*
  33.  * # of subsamples to take within each of the totsamples slots when
  34.  * computing 'animated' bounding boxes.
  35.  */
  36. #define TIME_SUB_SAMPLES    10
  37.  
  38. typedef struct SampleInfo {
  39.     int    totsamples,    /* # of samples/pixel */
  40.         sidesamples,    /* sqrt(samples) */
  41.         gaussian,    /* gaussian filter? */
  42.         framenum,    /* current frame numer */
  43.         timemagic;    /* # of time samples per screen... */
  44.     Float    weight,        /* 1. / totsamples */
  45.         spacing,    /* 1. / sidesamples  */
  46.         filterwidth,    /* total width of filter */
  47.         filterdelta,    /* filterwidth * spacing */
  48.         **filter,    /* pixel filter, sidesamp by sidesamp */
  49.         starttime,    /* start time */
  50.         shutter;    /* length of time shutter is open */
  51. } SampleInfo;
  52.  
  53. extern SampleInfo Sampling;
  54.  
  55. extern void    SamplingSetOptions(), UnitCirclePoint();
  56.  
  57. #endif /* SAMPLING */
  58.