Added Image:getData, returns the original ImageData (or CompressedData) used to create the image

This commit is contained in:
Alex Szpakowski
2013-06-17 13:43:40 -03:00
parent 76618f0328
commit cd97e9ec05
5 changed files with 41 additions and 3 deletions
+6 -1
View File
@@ -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;