文件名称:Cload3ds
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:10kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
该类是在qt4.6上运行通过,是我将网上流传的两个文件进行了整合,使得适用于qt了,加载了3ds文件成功显示。注意头文件。
使用方法:
CLoad3DS *m_3ds_p = new CLoad3DS()
m_3ds_p->Init("e:/plane1.3ds",0)
//以上代码置于OpenGL的Init部分
//以下代码置于OpenGL画图部分
m_3ds_p->show3ds(0,50,50,-50,10.0)
说明:上面的0表示绑定的模型ID,该类可以绑定0~9个模型,分别进行显示
50,50,-50是程序员将该模型置于空间中的xyz坐标,10.0是该模型的放大倍数
如果要旋转的话自己使用OpenGL提供的选装函数吧-The class is run by the qt4.6 that I will be circulated on the Internet integration of the two documents were made applicable to qt, and load the 3ds file a successful show. Note that header file. Usage: CLoad3DS* m_3ds_p = new CLoad3DS () m_3ds_p-> Init (" e:/plane1.3ds" , 0) // more code in the Init OpenGL part of// the following code in the OpenGL drawing some m_3ds_p- > show3ds (0,50,50,-50,10.0) Note: The above model 0 that bind ID, the class can be bound to 0 ~ 9 models were for display 50,50,-50 programmers The model is placed in the xyz coordinate space, 10.0 is the magnification of the model so if you want to spin their own use OpenGL functions it provides optional
使用方法:
CLoad3DS *m_3ds_p = new CLoad3DS()
m_3ds_p->Init("e:/plane1.3ds",0)
//以上代码置于OpenGL的Init部分
//以下代码置于OpenGL画图部分
m_3ds_p->show3ds(0,50,50,-50,10.0)
说明:上面的0表示绑定的模型ID,该类可以绑定0~9个模型,分别进行显示
50,50,-50是程序员将该模型置于空间中的xyz坐标,10.0是该模型的放大倍数
如果要旋转的话自己使用OpenGL提供的选装函数吧-The class is run by the qt4.6 that I will be circulated on the Internet integration of the two documents were made applicable to qt, and load the 3ds file a successful show. Note that header file. Usage: CLoad3DS* m_3ds_p = new CLoad3DS () m_3ds_p-> Init (" e:/plane1.3ds" , 0) // more code in the Init OpenGL part of// the following code in the OpenGL drawing some m_3ds_p- > show3ds (0,50,50,-50,10.0) Note: The above model 0 that bind ID, the class can be bound to 0 ~ 9 models were for display 50,50,-50 programmers The model is placed in the xyz coordinate space, 10.0 is the magnification of the model so if you want to spin their own use OpenGL functions it provides optional
(系统自动生成,下载前可以参看下载内容)
下载文件列表
说明.txt
cload3ds_1.h
CBMPLoader.cpp
cload3ds_1.cpp
CBMPLoader.h
cload3ds_1.h
CBMPLoader.cpp
cload3ds_1.cpp
CBMPLoader.h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.