1. Write an OpenGL program that renders a cube with six faces of different colors. Form the cube from six quadrilaterals, making sure that the front faces are facing outwards. If you already know how to perform rotations, let your program include the ability to spin the cube around.(Ref er to Chapter II and see the Wrap Torus program for code that does this.)
If you rendered the cube using triangles instead, how many triangles would be needed?
2. Repeat question 1. but render the cube using two quad strips, each containing three quadrilaterals.
3. Repeat question 1. but render the cube using two triangle fans.