mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Switched Image wrap modes to the new string syntax too.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user