OpenGL C 3D Object

The object you create should be reflective of one object from your 2D scene. At this stage of your object’s creation, you should add different colors to each vertex of the object. This will help you better visualize the variance between the different parts of the shapes you are creating. Note that the code you already have uses rainbow colors on the shapes that are provided; if you use this code you may keep that rainbow format. Remember, the shapes you may wish to use are as follows:CubeCylinderPlanePyramidSphereTorus
Apply transformations so shapes are scaled, rotated, and translated (placed) correctly. This work should be relevant for the 2D reference image. For example, if you are working with a cylinder, should it be standing up or lying on its side, based on the image you are referencing? If you are also creating a cube, where should it be placed relative to the cylinder? What sizes are the two objects when compared to each other? It will be easier if you complete these transformations in the right order for your specific object. In general, you will wish to first scale, then rotate, and then translate. While this is not always the case, that is the most likely order for your process to follow.Create code that follows a logical flow without syntax errors. The code you create needs to be executable and all the code that is included will have to be reached by the execution. Note that not everything should be written in a single function and your work should be well-modularized.Apply coding best practices in your creations. Pay particular attention to the way you format and comment your code. Program code should be easy to read and follow industry standard code formatting practices, such as indentation and spacing. Commenting best practices should be in place to ensure the source code is briefly and clearly explained using descriptive comments.
3D OBJECT TO RECREATE IS A SALT SHAKER (CUBE WITH CYLINDER ON TOP). I included the code to create a cube to help.
Ensure proper libraries (glew.lib and glfw3.lib) are used. Do not use FreeGlut.
Needed ASAP!!
#include // cout, cerr#include // EXIT_FAILURE#include // GLEW library#include // GLFW library // GLM Math Header inclusions#include #include #include using namespace std; // Standard namespace /*Shader program Macro*/#ifndef GLSL#define GLSL(Version, Source) “#version ” #Version ” core n” #Source#endif // Unnamed namespacenamespace{const char* const WINDOW_TITLE = “Tutorial 3.5”; // Macro for window title // Variables for window width and heightconst int WINDOW_WIDTH = 800;const int WINDOW_HEIGHT = 600; // Stores the GL data relative to a given meshstruct GLMesh{ GLuint vao; // Handle for the vertex array object GLuint vbos[2]; // Handles for the vertex buffer objects GLuint nIndices; // Number of indices of the mesh}; // Main GLFW windowGLFWwindow* gWindow = nullptr;// Triangle mesh dataGLMesh gMesh;// Shader programGLuint gProgramId;} /* User-defined Function prototypes to: * initialize the program, set the window size, * redraw graphics on the window when resized, * and render graphics on the screen */bool UInitialize(int, char*[], GLFWwindow** window);void UResizeWindow(GLFWwindow* window, int width, int height);void UProcessInput(GLFWwindow* window);void UCreateMesh(GLMesh