Question # 1:
Write a routine in C++ to move n vertices of a polygon from one position to another position through OpenGL libraries. Use the translate Polygon method for the polygon movement. Note: No need to write the Include part or the main method of C++.
Question # 2:
Write a C++ routine through OpenGL libraries for two-dimensional rotation of a polygon. You can rotate by angle θ and a position (xr, yr). The polygon can also be generated through OpenGL routines. Note: No need to write the Include part or the main method of C++.