--- ray/src/common/cone.h 1991/11/12 16:54:18 2.1 +++ ray/src/common/cone.h 2003/06/06 16:38:47 2.4 @@ -1,7 +1,4 @@ -/* Copyright (c) 1986 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid $Id: cone.h,v 2.4 2003/06/06 16:38:47 schorsch Exp $ */ /* * cone.h - header file for cones (cones, cylinders, rings, cups, tubes). * @@ -12,7 +9,14 @@ * * 2/12/86 */ +#ifndef _RAD_CONE_H_ +#define _RAD_CONE_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "copyright.h" + typedef struct cone { FLOAT *ca; /* cone arguments (o->oargs.farg) */ char p0, p1; /* indices for endpoints */ @@ -28,4 +32,14 @@ typedef struct cone { #define CO_P0(co) ((co)->ca+(co)->p0) #define CO_P1(co) ((co)->ca+(co)->p1) -extern CONE *getcone(); + +extern CONE *getcone(OBJREC *o, int getxf); +extern void freecone(OBJREC *o); +extern void conexform(CONE *co); + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_CONE_H_ */ +