00001 /*************************************************************************** 00002 AC3DMaterial.h - description 00003 ------------------- 00004 begin : june 29, 05 00005 copyright : (C) 2005-2006 by Duong-Khang NGUYEN 00006 email : neoneurone @ users sourceforge net 00007 00008 $Id: ac3dmaterial.h 6 2006-06-19 21:43:20Z neoneurone $ 00009 ***************************************************************************/ 00010 00011 /*************************************************************************** 00012 * * 00013 * This program is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU General Public License as published by * 00015 * the Free Software Foundation; either version 2 of the License, or * 00016 * any later version. * 00017 * * 00018 ***************************************************************************/ 00019 00020 #ifndef _OPENCITY_AC3DAC3DMATERIAL_H_ 00021 #define _OPENCITY_AC3DAC3DMATERIAL_H_ 1 00022 00023 #include <string> 00024 00025 using std::string; 00026 00027 namespace AC3D { 00028 00029 00032 struct Color { 00033 Color( float r, float g, float b ):fR(r),fG(g),fB(b){} 00034 float fR, fG, fB; 00035 }; 00036 00037 00038 //======================================================================== 00042 class AC3DMaterial{ 00043 public: 00044 AC3DMaterial(); 00045 AC3DMaterial( const string data ); 00046 00047 ~AC3DMaterial(); 00048 00049 00050 //======================================================================== 00051 string ToStr() const; // debug method 00052 00053 string strName; 00054 Color rgb; 00055 Color amb; 00056 Color emis; 00057 Color spec; 00058 float shi; 00059 float trans; 00060 }; 00061 00062 } 00063 00064 #endif 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085