00001 // Color.cpp: implementation of the Color class. 00002 // 00004 00005 #include "Color.h" 00006 #include "ColorDefinitions.h" 00007 00009 // Construction/Destruction 00011 00012 ColorDefinitions Color::definitions; 00013 00014 Color::Color(unsigned char r, unsigned char g, unsigned char b, bool transparent): 00015 r(r),g(g),b(b),transparent(transparent){ 00016 } 00017 00018 Color::Color(const char* name):transparent(false){ 00019 if(name=="transparent") 00020 transparent=1; 00021 else 00022 definitions.setColor(r,g,b,name); 00023 } 00024 00025 Color::~Color(){ 00026 }
Thyrix homepage Users' guide
(C) Arxia 2004-2005