I’ve been experimenting with
SDL_RenderDrawLineF() (new to SDL 2.0.10) and I’m not getting the results I expected. For example if I do this (using the OpenGL backend):
SDL_RenderDrawLineF(renderer, 3.5, 3.0, 9.5, 3.0);
I had expected that the first and last pixels would have a reduced amplitude, because of their sub-pixel coordinates, but that’s not what I see. Every pixel is either fully ‘on’ or fully ‘off’, just as it would have been with the integer version of the function. Changing the blend mode with
SDL_SetRenderDrawBlendMode() didn’t seem to make any difference.
What am I missing here?