Hello,
We are new to OpenGL and GLUT programming and our teacher gave us a homework. The task is, there are 3 rectangles and 1 triangle. Each object have a different color (for easy selection) With these objects, we are suppose to do a home building. I drew the objects but I have big problems with moving. The first method and the easiest one is, selecting the objects with color. In this method, how can I get the color of the object under the mouse pointer?
The second method is general selecting and moving. I have no idea how to do this with GLUT.
I hope you friends understand the situation. Thanks for you answers.