Added Image:refresh(), reloads a love.graphics image using the imagedata that created it

This commit is contained in:
Alex Szpakowski
2013-04-10 00:15:43 -03:00
parent c215541d6c
commit b22f1aa16a
4 changed files with 78 additions and 18 deletions
+7
View File
@@ -115,6 +115,13 @@ public:
bool loadVolatile();
void unloadVolatile();
/**
* Re-uploads the ImageData or CompressedData associated with this Image to
* the GPU, allowing situations where lovers modify an ImageData after image
* creation from the ImageData, and apply the changes with Image:refresh().
**/
bool refresh();
static void setDefaultMipmapSharpness(float sharpness);
static float getDefaultMipmapSharpness();
static void setDefaultMipmapFilter(FilterMode f);