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.newCompressedDataCreate a new CompressedData object from a compressed image file.Added since 0.9.0

Functions

CompressedData:getDimensionsGets the width and height of the CompressedData.Added since 0.9.0
CompressedData:getFormatGets the format of the CompressedData.Added since 0.9.0
CompressedData:getHeightGets the height of the CompressedData.Added since 0.9.0
CompressedData:getMipmapCountGets the number of mipmap levels in the CompressedData.Added since 0.9.0
CompressedData:getWidthGets the width of the CompressedData.Added since 0.9.0
Data:getPointerGets a pointer to the Data.
Data:getSizeGets the size in bytes of the Data.
Data:getStringGets the full Data as a string.Added since 0.9.0
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

Enums

CompressedFormatCompressed image data formats.Added since 0.9.0

Supertypes

See Also

Other Languages

Personal tools