I need to paint a polygon using floodfill algorithm. The input values are any pixel positions inside the polygon and fill color. The algorithm works as follows: First it has to get the color of the given pixel.Then comapare the color with the fillcolor. ?If not paint with new color in a 4-connected manner. I need help to find out the corresponding function to get the color of specified pixels. In Turbo C we use getPixel(). Using openGL in linux which is the function to be used... Can anyone help me out. -- View this message in context: http://www.nabble.com/floodfill-algorithm-using-openGL-tf2451785.html#a6833219 Sent from the linux-opengl mailing list archive at Nabble.com. - To unsubscribe from this list: send the line "unsubscribe linux-opengl" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html