2D primitives - is there any way to draw a filled triangle?
Posted: Mon Mar 07, 2011 6:19 am
Hi guys,
I'm currently using three calls to draw2DLine() function to draw a triangle onto a texture. (To see what I mean, you can click here: http://img683.imageshack.us/img683/234/ ... hwalls.png -- this screenshot shows four such triangles)
Is there any alternative function that I can use to render a solid, filled-in triangle, instead of just the outline as happens when I use draw2DLine()?
I'm currently using three calls to draw2DLine() function to draw a triangle onto a texture. (To see what I mean, you can click here: http://img683.imageshack.us/img683/234/ ... hwalls.png -- this screenshot shows four such triangles)
Is there any alternative function that I can use to render a solid, filled-in triangle, instead of just the outline as happens when I use draw2DLine()?