2D textured polygons ?

Blitz3D Forums/Blitz3D Programming/2D textured polygons ?

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.

Drawing 2D textured polys won't be very fast.

To do it you need to calculate the start and end pixel for each horizontal line using a line drawing algorithm, like bresenhams for example, and then while drawing each pixel you calculate where that pixel is in the texture and get the color from there.