vlineRgba function

int vlineRgba(
  1. Pointer<SdlRenderer> renderer,
  2. int x,
  3. int y1,
  4. int y2,
  5. int r,
  6. int g,
  7. int b,
  8. int a,
)

Implementation

int vlineRgba(Pointer<SdlRenderer> renderer, int x, int y1, int y2, int r,
    int g, int b, int a) {
  int result = 0;
  result |= sdlSetRenderDrawBlendMode(
      renderer, (a == 255) ? SDL_BLENDMODE_NONE : SDL_BLENDMODE_BLEND);
  result |= sdlSetRenderDrawColor(renderer, r, g, b, a);
  result |= sdlRenderDrawLine(renderer, x, y1, x, y2);
  return result;
}