Available since LÖVE 0.9.0
|
This enum is not supported in earlier versions.
|
Compressed image data formats. Here and here are a couple overviews of many of the formats.
Unlike traditional PNG or jpeg, these formats stay compressed in RAM and in the graphics card's VRAM. This is good for saving memory space as well as improving performance, since the graphics card will be able to keep more of the image's pixels in its fast-access cache when drawing it.
|
In LÖVE versions prior to 0.10.0, these constants are all lower-case.
|
|
Constants
- DXT1
- The DXT1 format. RGB data at 4 bits per pixel (compared to 32 bits for ImageData and regular Images.) Suitable for fully opaque images on desktop systems.
- DXT3
- The DXT3 format. RGBA data at 8 bits per pixel. Smooth variations in opacity do not mix well with this format.
- DXT5
- The DXT5 format. RGBA data at 8 bits per pixel. Recommended for images with varying opacity on desktop systems.
- BC4
- The BC4 format (also known as 3Dc+ or ATI1.) Stores just the red channel, at 4 bits per pixel.
- BC4s
- The signed variant of the BC4 format. Same as above but pixel values in the texture are in the range of [-1, 1] instead of [0, 1] in shaders.
- BC5
- The BC5 format (also known as 3Dc or ATI2.) Stores red and green channels at 8 bits per pixel.
- BC5s
- The signed variant of the BC5 format.
Available since LÖVE 0.9.2
- BC6h
- The BC6H format. Stores half-precision floating-point RGB data in the range of [0, 65504] at 8 bits per pixel. Suitable for HDR images on desktop systems.
- BC6hs
- The signed variant of the BC6H format. Stores RGB data in the range of [-65504, +65504].
- BC7
- The BC7 format (also known as BPTC.) Stores RGB or RGBA data at 8 bits per pixel.