In OpenGL programming, use glmultitexcoord2f (gl_texture0 + I, x, y); you will find that this function is not defined, and gl_texture0, this constant. In the VC compiler, the version of OpenGL is 1.1, and the version is relatively backward. The next glew library is enough.
The installation steps are the same as those of GLUT. Place the DLL dynamic link library in C:/Windows:/system32;
Header file. You can search for GL. h, or gluax. h, you will find that in the installation path of the compiler (VC), put the glew in the VC:/platformsdk:/include/GL folder and it will be OK.
Put the static library lib file in the VC:/platformsdk:/lib file.
If glew is used but an error such as: XXX function is not defined, you can add the following at the beginning of the file: # pragma comment (Lib, "glew32.lib ")
There is another problem: Check the glew. h file and you will find the following:
# If defined (_ gl_h _) | defined (_ gl_h __)
# Error Gl. h encoded ded before glew. h
# Endif
The Gl. h file cannot be referenced before glew. Otherwise, the following error occurs: Gl. h encoded ded before glew. h.
Glew: http://glew.sourceforge.net/