Available since LÖVE 11.0
This function is not supported in earlier versions.
Gets the available texture types, and whether each is supported.
texturetypes = love.graphics.getTextureTypes( )
None.
table texturetypestextypes = 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
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.graphics.getTextureTypes