(turn) Installation of Glew

Source: Internet
Author: User

Http://blog.sina.com.cn/s/blog_858820890100vbys.html

Download Link:

Https://sourceforge.net/project/downloading.php?group_id=67586&filename=glew-1.5.1-win32.zip

Click on the link above to download the latestGlew (SupportOpenGL 3.0), unzip, will/bin/glew32.dll Copy ToBelow the C:/windows/system32, the/lib/glew32.lib Copy ToVC installation directory under  lib  directory (e.g. /microsoft Visual Studio 9.0/vc/lib/),  / include/glew.h  and /include/wglew.h  Copy to  vc  installation directory  /include/gl/  directory (such as: /microsoft Visual Studio 9.0/vc/include/gl/). In the program we only need to include gl,glu  or  glut.h  before including  glew.h will be glew.h), in the code to add such a sentence : 

#pragma comment (lib, "Glew32.lib")

Example:

#include <GL/glew.h>

#include <GL/glut.h>

#progrma comment (lib, "Glew32.lib")

After creating the OpenGL rendering context, call glewinit (); initialize the Glew.

The source of this article: http://blog.csdn.net/todayq/article/details/5925233

(turn) Installation of Glew

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.