I need to learn the best way to texture fill a triangle in three ways:
1. Texture Relative: The texture is effectively "burned" onto the triangle.
2. Fixed Texture: The triangle acts like a "window" to the texture.
3. Pivot-Fixed Texture: The triangle acts as a "window" to the texture ONLY for rotation.
I was trying to hack the Image class, by putting two of the vertexes at the same position, but was getting strange behavior. I see that creating a Custom Display Object will likely provide a viable solution, but will involve a lot of careful coding.
I also found that the Graphics Extension has texture fill capabilities, but haven't found great documentation on it, and am concerned about the performance, since I will need to have many (~100) triangles all based on one or two textures.
Why doesn't Starling have Triangle and TriangleBatch features, like it does for Quads? I would think that providing Triangle support would be more flexible.
If anyone has any suggestions on the best approach or even if this functionality already exists, then I'd be grateful. Thanks.