00001 /* P L A S T I C . H 00002 * BRL-CAD 00003 * 00004 * Copyright (c) 1993-2006 United States Government as represented by 00005 * the U.S. Army Research Laboratory. 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public License 00009 * as published by the Free Software Foundation; either version 2.1 of 00010 * the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this file; see the file named COPYING for more 00019 * information. 00020 */ 00021 /** @addtogroup liboptical */ 00022 /*@{*/ 00023 /** @file plastic.h 00024 * 00025 */ 00026 #ifndef plastic_h 00027 #define plastic_h 00028 00029 #define PL_MAGIC 0xbeef00d 00030 #define PL_NULL ((struct phong_specific *)0) 00031 #define PL_O(m) offsetof(struct phong_specific, m) 00032 00033 /* Local information */ 00034 struct phong_specific { 00035 int magic; 00036 int shine; 00037 double wgt_specular; 00038 double wgt_diffuse; 00039 double transmit; /**< @brief Moss "transparency" */ 00040 double reflect; /**< @brief Moss "transmission" */ 00041 double refrac_index; 00042 double extinction; 00043 double emission[3]; 00044 struct mfuncs *mfp; 00045 }; 00046 00047 extern struct bu_structparse phong_parse[]; 00048 #endif 00049 /*@}*/ 00050 /* 00051 * Local Variables: 00052 * mode: C 00053 * tab-width: 8 00054 * c-basic-offset: 4 00055 * indent-tabs-mode: t 00056 * End: 00057 * ex: shiftwidth=4 tabstop=8 00058 */ 00059