If I am given the exact coordinates of three vertices in image-space (as in, the numbers are not integers, but can be rounded to find their location on the screen), how can I determine which pixels are inside the triangle and should be colored?
If you look at the diagram below it might clarify what I'm trying to do
http://oi47.tinypic.com/eaktwi.jpg
As you can see, the pixels which are mostly within the triangle are filled green. How can I do this in code?