Ejemplo n.º 1
0
 //this is a really, really bad tesselator
 void TesselateRender(Blitter b)
 {
     Vector2[] tri = new Vector2[3];
     for (int i = 0; i <= poly.Length - 2; i++)
     {
         tri[0] = poly[0];
         tri[1] = poly[i % poly.Length];
         tri[2] = poly[(i + 1) % poly.Length];
         b.Triangle(tri);
     }
 }