drawNormal method

Future drawNormal(
  1. NodeContext context,
  2. Rectangle<double> bb
)

Implementation

Future drawNormal(ui.NodeContext context, Rectangle<double> bb) async {
  int flip = SDL_FLIP_NONE;
  if (_flipX) {
    flip |= SDL_FLIP_HORIZONTAL;
  }
  if (_flipY) {
    flip |= SDL_FLIP_VERTICAL;
  }
  context.renderer.copyEx(texture,
      dstrect: bb, srcrect: srcrect, angle: _angle, flip: flip);
}