类型 字符串 对象 TextureResource 库 graphics.* 修订版本 版本 2024.3703 另请参阅 texture.filename texture.baseDir TextureResource
此属性指示纹理的类型。
local texture1 = graphics.newTexture( { type="image", filename="background.png" } ) print( texture1.type ) --> "image"
local texture2 = graphics.newTexture( { type="canvas", width=128, height=128 } ) print( texture2.type ) --> "canvas"