texture.wrapY

类型 字符串
对象 TextureResourceBitmap
graphics.*
修订版 2024.3703 版
另请参阅 TextureResource
TextureResourceBitmap
display.setDefault()
texture.wrapX

概览

表示纹理的垂直环绕模式:"clampToEdge""repeat""mirroredRepeat"

示例

display.setDefault( "textureWrapX", "repeat" )
display.setDefault( "textureWrapY", "mirroredRepeat" )

-- Create "TextureResource" object of type "TextureResourceBitmap"
local texture = graphics.newTexture( { type="image", filename="background.png" } )

print( texture.wrapX )  --> "repeat"
print( texture.wrapY )  --> "mirroredRepeat"