fillRect method

int fillRect(
  1. Rectangle<double>? rect,
  2. int color
)

Implementation

int fillRect(math.Rectangle<double>? rect, int color) {
  int result;
  Pointer<SdlRect> rectPointer = nullptr;
  if (rect != null) {
    rectPointer = rect.calloc();
  }
  result = sdlFillRect(this, rectPointer, color);
  calloc.free(rectPointer);
  return result;
}