mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Add new wrap mode "clampone". Pixels sampled outside of [0, 1] are white (1, 1, 1, 1).
--HG-- branch : minor
This commit is contained in:
@@ -67,6 +67,7 @@ public:
|
||||
{
|
||||
WRAP_CLAMP,
|
||||
WRAP_CLAMP_ZERO,
|
||||
WRAP_CLAMP_ONE,
|
||||
WRAP_REPEAT,
|
||||
WRAP_MIRRORED_REPEAT,
|
||||
WRAP_MAX_ENUM
|
||||
@@ -153,6 +154,8 @@ public:
|
||||
static int getTotalMipmapCount(int w, int h);
|
||||
static int getTotalMipmapCount(int w, int h, int d);
|
||||
|
||||
static bool isClampZeroOrOne(WrapMode w) { return w == WRAP_CLAMP_ZERO || w == WRAP_CLAMP_ONE; }
|
||||
|
||||
static bool getConstant(const char *in, TextureType &out);
|
||||
static bool getConstant(TextureType in, const char *&out);
|
||||
static std::vector<std::string> getConstants(TextureType);
|
||||
|
||||
Reference in New Issue
Block a user