Filled Triangles

BlitzPlus Forums/BlitzPlus Programming/Filled Triangles

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Anyone know a technique to draw filled 2D triangles. Specifically right angled tris.

At the moment I have a ridiculously slow bit of code that uses trig to slowly go up the hypotenuse of a triangle one pixel at a time and then draws a line down to the base line.

It works but is terrible slow – I have to draw about 1000 triangle per flip (don’t ask).

Any know a better way? If I search the web I just get information about DirectX triangles and this obviously isn’t what I want.

Thanks!