home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource Library: Graphics
/
graphics-16000.iso
/
msdos
/
raytrace
/
rayshade
/
src
/
instance.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-18
|
1KB
|
44 lines
/*
* instance.h
*
* Copyright (C) 1989, 1991, Craig E. Kolb
* All rights reserved.
*
* This software may be freely copied, modified, and redistributed
* provided that this copyright notice is preserved on all copies.
*
* You may not distribute this software, in whole or in part, as part of
* any commercial product without the express consent of the authors.
*
* There is no warranty or other guarantee of fitness of this software
* for any purpose. It is provided solely "as is".
*
* $Id: instance.h,v 4.0 91/07/17 14:38:30 kolb Exp Locker: kolb $
*
* $Log: instance.h,v $
* Revision 4.0 91/07/17 14:38:30 kolb
* Initial version.
*
*/
#ifndef INSTANCE_H
#define INSTANCE_H
#define GeomInstanceCreate(o) GeomCreate((GeomRef)InstanceCreate(o), \
InstanceMethods())
/*
* Instance object
*/
typedef struct {
struct Geom *obj; /* Geom being instantiated */
Float bounds[2][3]; /* Bounding box of object */
} Instance;
extern char *InstanceName();
extern int InstanceIntersect(), InstanceConvert();
extern void InstanceBounds();
extern Instance *InstanceCreate();
extern Methods *InstanceMethods();
#endif /* INSTANCE_H */