Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Gets the raw and compressed pixel formats usable for Images, and whether each is supported.
formats = love.graphics.getImageFormats( )
None.
table formats
formats = love.graphics.getImageFormats() 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