Reorganized some Image code.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2015-02-21 03:47:19 -04:00
parent 3faa3c7645
commit 971380003b
2 changed files with 154 additions and 165 deletions
+8 -12
View File
@@ -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.