With perspective projection, let the user choose one object among four different objects included in a group. You should create three various groups in the project (a model is shown by the figure). Use transformations to make every object fit a certain portion of the window (separate every group using matrix push and pop commands). Define colors and positions of light sources using glLight*(). Finally, use timers to implement smooth motion.
Hint #1:
Use enumerators to specify the selected objects. Their values would be set in main() and tested in display().
Hint #2:
Motion is based on repeating display with increasing rotation angle (updated in an
additional function including timer).
:rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: ![]()