CompressedData
Available since LÖVE 0.9.0 |
This type is not supported in earlier versions. |
Represents compressed image data designed to stay compressed in RAM. CompressedData encompasses standard compressed formats such as DXT1, DXT5, and BC5 / 3Dc.
You can't draw CompressedData directly to the screen. See Image for that.
Constructors
love.image.newCompressedData | Create a new CompressedData object from a compressed image file. |
![]() |
Functions
CompressedData:getDimensions | Gets the width and height of the CompressedData. |
![]() |
|
CompressedData:getFormat | Gets the format of the CompressedData. |
![]() |
|
CompressedData:getHeight | Gets the height of the CompressedData. |
![]() |
|
CompressedData:getMipmapCount | Gets the number of mipmap levels in the CompressedData. |
![]() |
|
CompressedData:getWidth | Gets the width of the CompressedData. |
![]() |
|
Data:getPointer | Gets a pointer to the Data. | ||
Data:getSize | Gets the size in bytes of the Data. | ||
Data:getString | Gets the full Data as a string. |
![]() |
|
Object:type | Gets the type of the object as a string. | ||
Object:typeOf | Checks whether an object is of a certain type. |
Enums
CompressedFormat | Compressed image data formats. |
![]() |
Supertypes
See Also
Category: