mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Reorganized some Image code.
--HG-- branch : minor
This commit is contained in:
@@ -79,13 +79,13 @@ public:
|
||||
**/
|
||||
Image(love::image::CompressedData *cdata, const Flags &flags);
|
||||
|
||||
/**
|
||||
* Destructor. Deletes the hardware texture and other resources.
|
||||
**/
|
||||
virtual ~Image();
|
||||
|
||||
love::image::ImageData *getImageData() const;
|
||||
love::image::CompressedData *getCompressedData() const;
|
||||
bool load();
|
||||
|
||||
// Implements Volatile.
|
||||
bool loadVolatile();
|
||||
void unloadVolatile();
|
||||
|
||||
/**
|
||||
* @copydoc Drawable::draw()
|
||||
@@ -107,6 +107,9 @@ public:
|
||||
|
||||
virtual GLuint getGLTexture() const;
|
||||
|
||||
love::image::ImageData *getImageData() const;
|
||||
love::image::CompressedData *getCompressedData() const;
|
||||
|
||||
virtual void setFilter(const Texture::Filter &f);
|
||||
virtual bool setWrap(const Texture::Wrap &w);
|
||||
|
||||
@@ -120,13 +123,6 @@ public:
|
||||
|
||||
void bind() const;
|
||||
|
||||
bool load();
|
||||
void unload();
|
||||
|
||||
// Implements Volatile.
|
||||
bool loadVolatile();
|
||||
void unloadVolatile();
|
||||
|
||||
/**
|
||||
* Re-uploads the ImageData or CompressedData associated with this Image to
|
||||
* the GPU.
|
||||
|
||||
Reference in New Issue
Block a user