1 /* 2 * UserTexture.cpp 3 * 4 * Created on: Jul 16, 2008 5 * Author: pete 6 */ 7 8 #include "UserTexture.hpp" 9 UserTexture(std::string qualifiedName)10UserTexture::UserTexture(std::string qualifiedName): qname(qualifiedName) 11 { 12 13 if (qualifiedName.substr(0,3) == "fc_") 14 { 15 name = qualifiedName.substr(3); 16 bilinear = true; 17 wrap = false; 18 } 19 else if (qualifiedName.substr(0,3) == "fw_") 20 { 21 name = qualifiedName.substr(3); 22 bilinear = true; 23 wrap = true; 24 } 25 else if (qualifiedName.substr(0,3) == "pc_") 26 { 27 name = qualifiedName.substr(3); 28 bilinear = false; 29 wrap = false; 30 } 31 else if (qualifiedName.substr(0,3) == "pw_") 32 { 33 name = qualifiedName.substr(3); 34 bilinear = false; 35 wrap = true; 36 } 37 else 38 { 39 name = qualifiedName; 40 bilinear = true; 41 wrap = true; 42 } 43 44 texsizeDefined = false; 45 } 46 ~UserTexture()47UserTexture::~UserTexture() 48 { 49 // TODO Auto-generated destructor stub 50 } 51