1 /* 2 * mapping.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: mapping.h,v 4.0 91/07/17 14:43:00 kolb Exp Locker: kolb $ 17 * 18 * $Log: mapping.h,v $ 19 * Revision 4.0 91/07/17 14:43:00 kolb 20 * Initial version. 21 * 22 */ 23 #ifndef MAPPING_H 24 #define MAPPING_H 25 26 #define PRIMSPACE 01 /* Mapping uses data in prim space */ 27 #define OBJSPACE 02 /* Mapping uses data in object space */ 28 29 typedef struct Mapping { 30 int flags; /* mapping flags */ 31 Vector center, uaxis, vaxis, norm; 32 Float dist; 33 RSMatrix m; 34 void (*method)(); 35 } Mapping; 36 37 extern Mapping *UVMappingCreate(), *SphereMappingCreate(), *CylMappingCreate(), 38 *LinearMappingCreate(); 39 40 #endif /* MAPPING_H */ 41