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!
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!