Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
problem with texture.REPEAT — Gideros Forum

problem with texture.REPEAT

nat12nat12 Member
edited August 2012 in Bugs and issues
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

Sign In or Register to comment.