00001 /* 00002 * Part of rvglue source code, 00003 * Copyright (C) 2000 Alexander Kroeller (alilein@gmx.de) 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 /* 00021 * $Id: colormod.h,v 1.1 2000/05/03 08:48:41 ali Exp ali $ 00022 * 00023 * $Log: colormod.h,v $ 00024 * Revision 1.1 2000/05/03 08:48:41 ali 00025 * Initial revision 00026 * 00027 * 00028 */ 00029 #ifndef __COLOR_MODIFIER_H 00030 #define __COLOR_MODIFIER_H 00031 00032 #include "parsedmod.h" 00033 #include "parsedcolor.h" 00034 00035 00036 00037 00039 class Mod_ColorModifier : public ParsedMod 00040 { 00041 public: 00042 Mod_ColorModifier(); 00043 00044 virtual bool bad(void); 00045 virtual bool parse(Parser &); 00046 00047 virtual void dump(const char *pref); 00048 00049 protected: 00050 bool parsed; 00051 ParsedColor color; 00052 00053 int lowest, highest; 00054 char name[20]; 00055 }; 00056 00057 00059 class Mod_EnvMap : public Mod_ColorModifier 00060 { 00061 public: 00062 Mod_EnvMap(); 00063 00064 virtual bool apply(Polygon*); 00065 }; 00066 00067 00069 class Mod_SetColor : public Mod_ColorModifier 00070 { 00071 public: 00072 Mod_SetColor(); 00073 00074 virtual bool apply(Polygon*); 00075 }; 00076 00077 00078 00080 class Mod_SetShadedColor : public Mod_ColorModifier 00081 { 00082 public: 00083 Mod_SetShadedColor(); 00084 00085 virtual bool apply(Polygon*); 00086 }; 00087 00088 00089 00090 00092 class Mod_Shade : public Mod_ColorModifier 00093 { 00094 public: 00095 Mod_Shade(); 00096 00097 virtual bool apply(Polygon*); 00098 }; 00099 00100 00101 00102 00104 class Mod_SetShade : public Mod_ColorModifier 00105 { 00106 public: 00107 Mod_SetShade(); 00108 00109 virtual bool apply(Polygon*); 00110 }; 00111 00112 00113 00114 00115 00116 #endif