I’m new to opengl, need ur guys help… how to color object using flood fill algorithm… for example… I’ve draw a triangle using GL_LINE consist of 3 lines… but how to color it using the algorithm?
Why can’t you just render the triangle filled? You could determine the polygon that needs to be filled and then render it using GL_POLYGON or GL_TRIANGLES mode.
hmm… so can you’ll give me idea on how to color the triangle… before this i’ve search google n found the flood fill algo., it seemed that the idea wont solve my prob.
Actually i can only draw object using GL_LINES() and after that need to do s/thing with the object. I’ve solved that part but I don’t know on how to color the object…