1A. Write a C or C++ program that draws a triangle and a box.The
triangle should be placed on top of the box and just touching thebox (see the
picture below). Your program shall have one window with the twoobjects displayed in the center.
1B. Write comments for each line of code, explaining what thisline does.
1C. On Windows, you must use freeglut, glew, glm, and SOILlibraries. On other platforms, if you are unable to make OpenGLwork, you may use WebGL.
1D Must use shader-based OpenGL (OpenGL 3.x) to implement theprogram.
DO NOT use old, fixed-function OpenGL APIs (OpenGL 1.x or 2.x)such
as glBegin(), glVertex3f(), glTranslate(), glPushMatrix(),
PayPal Gateway not configured
PayPal Gateway not configured