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.

Thanks sswift, interesting idea using a locked buffer.

Since I only need right angled triangles I can simplify your code a lot as there’s only one gradient to calculate. Can’t say I understand how you’re finding the gradient using all that bit shifting. I’m using trig myself.

Is TAN() quite slow in Blitz+?

Also, what’s faster, drawing lines or drawing filled rectangles?

Cheers!