texturedPolygon method

bool texturedPolygon(
  1. List<Point<double>> ps,
  2. Pointer<SdlSurface> texture,
  3. Point<double> texturePos
)

Implementation

bool texturedPolygon(List<math.Point<double>> ps, Pointer<SdlSurface> texture,
    math.Point<double> texturePos) {
  var xsPointer = ps.callocInt16X();
  var ysPointer = ps.callocInt16Y();
  var result = gfx.texturedPolygon(this, xsPointer, ysPointer, ps.length,
      texture, texturePos.x.toInt(), texturePos.y.toInt());
  calloc.free(xsPointer);
  calloc.free(ysPointer);
  return result;
}