Can you please help with my hw?

our teacher gave us this question but we didn’t really learn how to do this
so if someone could help me I’ll be so thankful!!!

this is the question:
Draw your scene (Circle, rectangle, square and triangle)
o When the user picks a pixel the entire scene is redrawn to the back buffer, but with
objects of interest drawn in different colors (colors coded). Use the back buffer
because the program must run in double-buffered mode.
o Next, data from the picked pixel is read from the back buffer with the help of a
glReadPixels() call and its color decoded to determine the picked object.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.