4 Windows 8.1+VS2013 配置 OpenGL.docx

  1. 1、本文档共4页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
4Windows8.1VS2013配置OpenGL

Windows 8.1+VS2013 配置 OpenGL分类:编程语言 2014-09-19 11:26 2890人阅读评论(0) 收藏举报openGL目录(?)[+]一下载OpenGL代码glutThe OpenGL Utility Toolkit二 VS2013配置三测试转自:?/lvhao578041381/article/details. 下载OpenGL代码——glut(The OpenGL Utility Toolkit)glut下载地址:?/resources/libraries/glut/glut_downloads.phpfor windows的code:/~nate/glut.html其中:???glut-3.7.6-bin.zip?: GLUT forWin32 dll, lib and header file (everything you need to get started programmingwith GLUT).????glut-3.7.6-src.zip?: GLUTsource code distribution (including a whole slew of great example programs +data).现使用glut-3.7.6-bin.zip配置环境。二. VS2013配置1. Copy your glut.hto:drive:\VC++ path\include\GL\glut.h*** put the drive where you installed VC++ instead of thedrive*** put the directory where you installed VC++ instead of theVC++ path比如,glut.h--- C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\GL\???(新建一个GL的文件夹)?2. Copy your glut32.lib to:drive:\VC++path\lib\glut32.lib*** put the drive where youinstalled VC++ instead of the drive ****** put the directory whereyou installed VC++ instead of the VC++ path比如,glut32.lib ---C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib?3. Copy glut32.dllinto your windows directory (windows or winnt, depends on if you are usingWindows95/98 or Windows NT)注意:glut32.dll? --- C:\Windows\SysWOW64 (windows8.1 64位操作系统)? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?--- C:\Windows\System32 (windows8.1 32位操作系统)比如,本人系统64位,因此glut32.dll --- C:\Windows\SysWOW644.打开vs2013,随便打开或新建一个项目。选择 project-project property- ConfigurationProperties-Linker-Input-Additional Dependencies 在其中添加opengl32.lib;glu32.lib;glut32.lib三. 测试在工程中添加如下代码编译(32位)即可。注意:用x64编译不行,因为glut32.lib是给32位编译用的。?[cpp]view plaincopyprint?//glExampl01.cpp?:?Defines?the?entry?point?for?the?console?application.????#include?Gl/glut.h????void?myDisplay(void)??{??????glClear(GL_COLOR_BUFFER_BIT);??????glColor3f(1.0,?0.0,?0.0);??????glBegin(GL_LINES);??????glVertex2i(180,?15);??????glVertex2i(10,?145);??????glEnd();??????glRectf(-0.5f,?-0.5f,?0.5f,?0.5f);??????gl

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档