copyEx method
Implementation
int copyEx(Pointer<SdlTexture> texture,
{math.Rectangle<double>? srcrect,
math.Rectangle<double>? dstrect,
double angle = 0,
math.Point<double>? center,
int flip = SDL_FLIP_NONE}) {
Pointer<SdlRect> srcrectPointer = nullptr;
Pointer<SdlRect> dstrectPointer = nullptr;
Pointer<SdlPoint> centerPointer = nullptr;
if (srcrect != null) {
srcrectPointer = srcrect.calloc();
}
if (dstrect != null) {
dstrectPointer = dstrect.calloc();
}
if (center != null) {
centerPointer = center.calloc();
}
// 1884
var result = sdlRenderCopyEx(this, texture, srcrectPointer, dstrectPointer,
angle, centerPointer, flip);
calloc.free(srcrectPointer);
calloc.free(dstrectPointer);
calloc.free(centerPointer);
return result;
}