OpenGL / C ++ - How to fill an area around a point with a mouse click?
4 answers
Let's look at the ability to select OpenGL using glSelectBuffer .
Refer to this chapter in the red book for an explanation.
+4
source to share
What you are looking for is called Flood Fill and it is a per pixel algorithm; which means you'll want to view frame objects with shaders or use the (very slow) glDrawPixels.
+1
source to share