it's a limitation indeed, but as textureregion is a texture in itself, there is a workaround. you can use the textureregion with an appropriate transformation matrix.
note these two parts of the reference:
**Shape.TEXTURE:** Sets the fill style as a textured. In this mode, the parameters are texture and an optional transformation matrix.
if you want to repeat the texture on your shape then this solution is not good though, i think. in this case you can make a rendertarget (which is a texture essentially) and draw on it a bitmap with the textureregion you want. then this rendertarget can be used for your shape as a texture hopefully.
@hgy29, that would be great and requested sort of much earlier (see the post in my comment), but at that time the conclusion was that it would be too hard to do that.
Comments
you can use the textureregion with an appropriate transformation matrix.
note these two parts of the reference:
**Shape.TEXTURE:** Sets the fill style as a textured. In this mode, the parameters are texture and an optional transformation matrix.
and
http://docs.giderosmobile.com/reference/gideros/TextureRegion/getRegion#TextureRegion:getRegion
see
http://giderosmobile.com/forum/discussion/1668/can-fills-use-a-textureregion-instead-of-a-texture/p1
especially the attached example of atilim.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: SinisterSoft, pie, totebo
Dislikes: koeosstudio
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: keszegh, SinisterSoft, pie, Favfly, totebo
thank you