love.graphics.getTextureTypes
Available since LÖVE 0.11.0 |
This function is not supported in earlier versions. |
Gets the available texture types, and whether each is supported.
Contents
Function
Synopsis
texturetypes = love.graphics.getTextureTypes( )
Arguments
None.
Returns
table texturetypes
- A table containing TextureTypes as keys, and a boolean indicating whether the type is supported as values. Not all systems support all types.
Examples
Display the texture types on screen and whether they're supported
textypes = love.graphics.getTextureTypes()
function love.draw()
local y = 0
for name, supported in pairs(textypes) do
local str = string.format("Supports texture type '%s': %s", name, tostring(supported))
love.graphics.print(str, 10, y)
y = y + 20
end
end
See Also
- love.graphics
- TextureType
- love.graphics.newCanvas
- love.graphics.newImage
- love.graphics.newArrayImage
- love.graphics.newCubeImage
- love.graphics.newVolumeImage
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