Description: In the Windows system, install the GLUT libraries: Open glut-3.7.6-bin.zip, remove glut.h, glut32.lib, glut32.dll, were placed.
The use of Visual Studio C++ compiler has been the project works, and modify the code generates the following graph:
On this basis, modify the vertex colors to make different colors for each vertex, polygon internal color gradient.
Operational methods and experimental steps:
1. Use GL_POLYGON draw white polygon models, as painted concave polygon as a polygon, so starting from the most upper left point rendering, in case the graphics to be unpredictable. Note to seek the concave angle (reflex convex) at the vertex coordinates.
2. The following consider amending the vertex colors. First, change from the rendering polygon graphics center located at (0,0) at the beginning, and set to white.
3. Then for the six respective concave corner vertex set its color to yellow, green, cyan, blue, magenta and red colors. Polygon will appear by default gradient e
File list (Check if you may need any files):
proj1.plg
proj1.c
proj1.dsp
proj1.dsw
proj1.ncb
proj1.opt