/* Irrlicht Library Wrapper Created by Nathan Adams Copyright (C) 2007 This software is licensed under the GNU/GPL. This software may not be used for commerical purposes. */ #include #include #include //#include "IrrLib.h" #include "IrrColor.h" using namespace irr; using namespace core; using namespace scene; using namespace video; using namespace io; using namespace gui; using namespace std; void IrrColor::test(){ //do nothing } SColor IrrColor::returnColor(std::string color){ int nColor = -1; if (color == "red") nColor = 1; else if (color == "green") nColor = 2; else if (color == "blue") nColor = 3; else if (color == "dark green") nColor = 4; else if (color == "pink") nColor = 5; else if (color == "grey") nColor = 6; switch (nColor){ case 1: return SColor(255, 255, 0, 0); break; case 2: return SColor(255, 0, 255, 0); break; case 3: return SColor(255, 0, 0, 255); break; case 4: return SColor(255, 0, 50, 0); break; case 5: return SColor(255, 255, 10, 255); break; case 6: return SColor(255,200,200,200); break; default: return SColor(255,200,200,200); break; }// TODO: Make this function modular }