mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Added Image:refresh(), reloads a love.graphics image using the imagedata that created it
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user