Draw multi-color rectangle using shader
Draw multi-color rectangle using shader
set up your OpenGL environment using following link in Visual Studio
http://openglbook.com/blog/setting-up-opengl-glew-and-freeglut-in-visual-c/