public static RenderTriangle Create(PositionTexture a, PositionTexture b, PositionTexture c, ImageElement img, int level)
        {
            RenderTriangle temp = new RenderTriangle();

            temp.A = a.Copy();
            temp.B = b.Copy();
            temp.C = c.Copy();
            temp.texture = img;
            temp.TileLevel = level;
            return temp;
        }
Пример #2
0
 public static RenderTriangle CreateWithMiter(PositionTexture a, PositionTexture b, PositionTexture c, ImageElement img, int level, double expansion)
 {
     RenderTriangle temp = new RenderTriangle();
     temp.ExpansionInPixels = expansion;
     temp.A = a.Copy();
     temp.B = b.Copy();
     temp.C = c.Copy();
     temp.texture = img;
     temp.TileLevel = level;
     temp.MakeNormal();
     return temp;
 }