Bresenham triangle

Hello,

Sharing my recent attempt at a Bresenham triangle(1) for the Software
Renderer
it looks like they are correctly displayed when outlined with sdl_drawlines
with an ok performance, i replaced my previous triangle function(2)

But for things like AA i have too many unanswered questions
i started adding it[also in bugzilla]
People familiar with AA and Bresenham might want to take a look at this
, to add/give pointers on how to do this properly.

note that this quest for AA help is only valid
, if the basic triangle is done correctly and acceptable :slight_smile:

(1)
https://bugzilla.libsdl.org/show_bug.cgi?id=3206

(2)
source
http://www.embenco.nl/wp-content/uploads/soft_draw.c
http://www.embenco.nl/wp-content/uploads/soft_draw.h
usage example
http://www.embenco.nl/wp-content/uploads/main.c