Hello,
I want to use texture repeat to fill a rectangular area, this work fine in emulator, but when tested on iPhone the texture is not repeated, am I doing something wrong or it is a bug?
here a snippet of my code:
local black = Shape.new()
black:beginPath()
local fill = Texture.new("Gfx/Levels/Grounds/ground.png", true, {wrap = Texture.REPEAT})
local matrix = Matrix.new(1, 0, 0, 1, 0, y0)
black:setFillStyle(Shape.TEXTURE, fill, matrix)
black:moveTo(x0, y0 + 128)
black:lineTo(x0, y0)
black:lineTo(dx + x0, y0)
black:lineTo(dx + x0, y0 + 128)
black:lineTo(x0, y0 + 128)
black:endPath()
self:addChild(black)
Comments
What are the dimensions of your texture? Because it's expanded to power of two before repeating.
We found our tester was using an older version of Gideros player that not supported texture wrap... after an update all work fine