Difference between revisions of "love.graphics.getCompressedImageFormats"
m (→Returns) |
m (→See Also) |
||
Line 27: | Line 27: | ||
== See Also == | == See Also == | ||
* [[parent::love.graphics]] | * [[parent::love.graphics]] | ||
− | * [[ | + | * [[CompressedImageFormat]] |
* [[love.graphics.newImage]] | * [[love.graphics.newImage]] | ||
* [[love.image.newCompressedData]] | * [[love.image.newCompressedData]] | ||
Line 33: | Line 33: | ||
{{#set:Sub-Category=State}} | {{#set:Sub-Category=State}} | ||
{{#set:Description=Gets the available [[CompressedFormat|compressed image formats]], and whether each is supported.}} | {{#set:Description=Gets the available [[CompressedFormat|compressed image formats]], and whether each is supported.}} | ||
+ | |||
== Other Languages == | == Other Languages == | ||
{{i18n|love.graphics.getCompressedImageFormats}} | {{i18n|love.graphics.getCompressedImageFormats}} |
Revision as of 02:58, 20 July 2015
Available since LÖVE 0.9.2 |
This function is not supported in earlier versions. |
Gets the available compressed image formats, and whether each is supported.
Contents
Function
Synopsis
formats = love.graphics.getCompressedImageFormats( )
Arguments
None.
Returns
table formats
- A table containing CompressedImageFormats as keys, and a boolean indicating whether the format is supported as values. Not all systems support all formats.
Examples
Display a list of the compressed image formats on the screen
formats = 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
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info