mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Begin unification of Canvases and Images.
This commit is contained in:
@@ -128,11 +128,12 @@ public:
|
||||
static love::Type type;
|
||||
static int textureCount;
|
||||
|
||||
enum MipmapsType
|
||||
enum MipmapsMode
|
||||
{
|
||||
MIPMAPS_NONE,
|
||||
MIPMAPS_DATA,
|
||||
MIPMAPS_GENERATED,
|
||||
MIPMAPS_MANUAL,
|
||||
MIPMAPS_AUTO,
|
||||
MIPMAPS_MAX_ENUM
|
||||
};
|
||||
|
||||
struct Slices
|
||||
@@ -222,6 +223,10 @@ public:
|
||||
static bool getConstant(TextureType in, const char *&out);
|
||||
static std::vector<std::string> getConstants(TextureType);
|
||||
|
||||
static bool getConstant(const char *in, MipmapsMode &out);
|
||||
static bool getConstant(MipmapsMode in, const char *&out);
|
||||
static std::vector<std::string> getConstants(MipmapsMode);
|
||||
|
||||
protected:
|
||||
|
||||
void initQuad();
|
||||
|
||||
Reference in New Issue
Block a user