vs2019 configure OpenGL

Transfer from https://blog.csdn.net/csr_monkey/article/details/89069767 

download link:

https://www.opengl.org/resources/libraries/glut/glutdlls37beta.zip
1. c ++ development components and installation NuGet package manager

    This can open the Visual Studio Installer view.

     

 2. Configure openGL
   

下载地址:https://www.opengl.org/resources/libraries/glut/glutdlls37beta.zip

    下载压缩包解压后,看到目录应是下图

     接着只要把文件放入对应的文件夹即可。

        把glut.h复制到...\VC\Tools\MSVC\14.16.27023\include\gl下
        把glut.lib和glut32.lib放到...\VC\Tools\MSVC\14.20.27508\lib\x86下
        把glut.dll和glut32.dll放到C:\Windows\SysWOW64下

    注:

        没有gl文件夹就新建一个
        我的Windows是64位的,如果是32位的应该把glut.dll和glut32.dll放到C:\Windows\System32下

3. New OpenGL project

    1. Select New "Windos Desktop" in the "Windos Desktop Wizard"

    2. Then check the "Empty Project"

     3. In the "Project", select "Manage NuGet Package" and search for "nupengl" in the browser, the two must be installed.

     So that you can successfully configured openGL in vs2019, create a file in the source file .cpp self can fly it!
 

Guess you like

Origin blog.csdn.net/qq_38446366/article/details/90081688
Recommended