pixelRgba function
Implementation
bool pixelRgba(Pointer<SdlRenderer> renderer, double x, double y, int r, int g,
int b, int a) {
bool result = true;
if (result) {
result = sdlSetRenderDrawBlendMode(
renderer, (a == 255) ? SDL_BLENDMODE_NONE : SDL_BLENDMODE_BLEND);
}
if (result) {
result = sdlSetRenderDrawColor(renderer, r, g, b, a);
}
if (result) {
result = sdlRenderPoint(renderer, x, y);
}
return result;
}