Switched Image wrap modes to the new string syntax too.

This commit is contained in:
Bill Meltsner
2010-02-09 15:18:27 -05:00
parent e661459103
commit db117de2c8
3 changed files with 51 additions and 10 deletions
+7 -2
View File
@@ -37,8 +37,9 @@ namespace graphics
enum WrapMode
{
WRAP_CLAMP,
WRAP_REPEAT
WRAP_CLAMP = 1,
WRAP_REPEAT,
WRAP_MAX_ENUM
};
enum FilterMode
@@ -64,11 +65,15 @@ namespace graphics
static bool getConstant(const char * in, FilterMode & out);
static bool getConstant(FilterMode in, const char *& out);
static bool getConstant(const char * in, WrapMode & out);
static bool getConstant(WrapMode in, const char *& out);
private:
static StringMap<FilterMode, FILTER_MAX_ENUM>::Entry filterModeEntries[];
static StringMap<FilterMode, FILTER_MAX_ENUM> filterModes;
static StringMap<WrapMode, WRAP_MAX_ENUM>::Entry wrapModeEntries[];
static StringMap<WrapMode, WRAP_MAX_ENUM> wrapModes;
}; // Image