Setting up OpenGL with Visual Studio 2017

1. Using NuGet
1.1  Install Nuget package manager
     Run visual studio installer to see if NuGet package manager n\be checked. It not, check up and install it. By the way, You must also have Windows SDK be installed.


1.2  Open your project and pull down the program setting menu to find NuGet package manager.

  Searching "freeglut", you would find following three package 
where package nupengl ncludes freeglut, glew and glfw. Install it.

2. Just copying nupengl to relevent directories.
2.1 Download nupengl at https://github.com/jcdickinson/NupenGL
2.2 Copy all include files downloaded to C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um\gl
      Copy all libraries files to C:\Program Files (x86)\Windows Kits\10\Lib\10xxxxxxx\um\x86(32bit) or \x64(64bit)
      Copy all 64bit dll files to C:\Windows\SysWOW64, copy all 32bit dll files to C:\Windows\system32

That's all


没有评论:

发表评论

VS Code下cmake, c++编译,调试环境的构成步骤

1   下载必须extension      按[Ctrl+Shift+X]打开extension窗口,选择安装"C/C++", "CMake", "CMake Tools" 2   在VSCode下打开作业目录 ...