About the glew Library

Source: Internet
Author: User

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/

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.