mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Added Image:getData, returns the original ImageData (or CompressedData) used to create the image
This commit is contained in:
@@ -88,11 +88,16 @@ const vertex *Image::getVertices() const
|
||||
return vertices;
|
||||
}
|
||||
|
||||
love::image::ImageData *Image::getData() const
|
||||
love::image::ImageData *Image::getImageData() const
|
||||
{
|
||||
return data;
|
||||
}
|
||||
|
||||
love::image::CompressedData *Image::getCompressedData() const
|
||||
{
|
||||
return cdata;
|
||||
}
|
||||
|
||||
void Image::draw(float x, float y, float angle, float sx, float sy, float ox, float oy, float kx, float ky) const
|
||||
{
|
||||
static Matrix t;
|
||||
|
||||
Reference in New Issue
Block a user