assimp编译及使用(2)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wodownload2/article/details/83506768

本节主要介绍使用各个lib以及dll加载正确加载模型。
首先到参考上checkt项目:https://github.com/triplepointfive/ogldev
我们是学习的是tutorial22章节,所以使用这个项目的源文件。

我们新建一个项目,然后把22章节的头文件,以及源文件,以及用到的素材考本到新项目中去。
1、我们的项目:
在这里插入图片描述

2、然后项目属性的设置
头文件包含目录:
在这里插入图片描述

库目录:
在这里插入图片描述
附件依赖库:
在这里插入图片描述

还有用到的dll。
assimp-vc140-mt.dll——从上节的编译目录下拷贝。
freeglut.dll——从https://blog.csdn.net/wodownload2/article/details/82882166编译的目录拷贝。

各个打包的完整项目在:
freeglut:https://pan.baidu.com/s/1YVpajzEGx9EKo6ZprNRQfA
assimp:

加载出来的效果为:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/wodownload2/article/details/83506768