15 #include "autoTextureScale.h" 16 #include "string_utils.h" 17 #include "config_util.h" 20 operator << (ostream &out, AutoTextureScale ats) {
35 return out <<
"unspecified";
38 return out <<
"**invalid AutoTextureScale (" << (int)ats <<
")**";
42 operator >> (istream &in, AutoTextureScale &ats) {
46 if (cmp_nocase(word,
"none") == 0 ||
47 cmp_nocase(word,
"0") == 0 ||
48 cmp_nocase(word,
"#f") == 0 ||
49 (!word.empty() && tolower(word[0]) ==
'f')) {
52 }
else if (cmp_nocase(word,
"down") == 0 ||
53 cmp_nocase(word,
"1") == 0 ||
54 cmp_nocase(word,
"#t") == 0 ||
55 (!word.empty() && tolower(word[0]) ==
't')) {
58 }
else if (cmp_nocase(word,
"up") == 0) {
61 }
else if (cmp_nocase(word,
"pad") == 0) {
65 util_cat->error() <<
"Invalid AutoTextureScale value: " << word <<
"\n";