Available since LÖVE 0.9.2 and removed in LÖVE 11.0
It has been replaced by love.graphics.getImageFormats.
Gets the available compressed image formats, and whether each is supported.
formats = love.graphics.getCompressedImageFormats( )
None.
table formatsformats = love.graphics.getCompressedImageFormats()
function love.draw()
local y = 0
for formatname, formatsupported in pairs(formats) do
local str = string.format("Supports format '%s': %s", formatname, tostring(formatsupported))
love.graphics.print(str, 10, y)
y = y + 20
end
end
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.graphics.getCompressedImageFormats