OpenGL配置之freeglut

下载freeglut

由于OpenGL是一种不依赖于平台性的图形api,所以诸如控制窗口和输出的操作是不包含在OpenGL里面的。这时我们需要第三方工具,如glut。
glut全称为 OpenGL Utility Toolkit,即OpenGL实用工具箱。 官方网址在这里。由于官方只提供了源代码,我们可以从官方链接里找到Martin Payne’s Windows binaries (MSVC and MinGW)。我们只需要从这个链接里拿到lib或dll和.h文件就可以使用freeglut了。

配置freeglut

这里使用VS2013进行开发,为了学习的方便性,不会每次都设定.lib和.h文件目录,所以将会放到默认vs指定的目录。以下是官方提示:

Installing the Libraries with MSVC

To install “freeglut” on your system so that your other projects will see it,
you will need to copy various files to various locations.
- The header files “freeglut.h”, “freeglut_ext.h”, “freeglut_std.h”, and
“glut.h” (distributed in the directory “freeglut\freeglut\include\GL”)
need to be copied to

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值