home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Graphics / graphics-16000.iso / msdos / raytrace / rayshade / src / cylinder.h < prev    next >
C/C++ Source or Header  |  1991-07-18  |  1KB  |  44 lines

  1. /* 
  2.  * cylinder.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.  * $Id: cylinder.h,v 4.0 91/07/17 14:37:18 kolb Exp Locker: kolb $
  17.  *
  18.  * $Log:    cylinder.h,v $
  19.  * Revision 4.0  91/07/17  14:37:18  kolb
  20.  * Initial version.
  21.  * 
  22.  */
  23. #ifndef CYLINDER_H
  24. #define CYLINDER_H
  25.  
  26. #define GeomCylinderCreate(c,a,r) GeomCreate((GeomRef)CylinderCreate(c,a,r), \
  27.                      CylinderMethods())
  28.  
  29. /*
  30.  * Cylinder
  31.  */
  32. typedef struct cylinder    {
  33.     Trans trans;
  34. } Cylinder;
  35.  
  36. extern Cylinder    *CylinderCreate();
  37. extern int    CylinderIntersect(), CylinderEnter(), CylinderNormal();
  38. extern void    CylinderBounds(), CylinderUV(),
  39.         CylinderStats();
  40. extern char    *CylinderName();
  41. extern Methods    *CylinderMethods();
  42.  
  43. #endif /* CYLINDER_H */
  44.