
dx 学习笔记
icefairy
大学
展开
-
dx 环境配置
1)VC6.0 : In VC++ 6.0 go to the menu and select Tools>Options>DirectoriesVC7.0 : In VC++ 7.0 go to the menu and select Tools>Options>Projects Folder>VC++ Directories添加头文件 和库文件 。如图。2)In VC++ 7.0 you can specify the library files to link in by going to the m原创 2010-07-08 10:12:00 · 1056 阅读 · 0 评论 -
dx 立方体程序中 顶点序列
<br />在龙书第二部分第二章节,有一个关于立方体的程序。其中设置点和索引的位置,比较有意思。顺便记录下来,以供以后翻阅。。<br /> <br /> // fill the buffer with data Vertex* vertices; VB->Lock(0, 0, (void**)&vertices, 0); vertices[0] = Vertex(-1.0f, -1.0f, -1.0f); vertices[1] = Vertex(-1.0f, 1.0f, -1.0f)原创 2010-11-05 17:44:00 · 1035 阅读 · 0 评论 -
Ogre 的 四元数quaternion(转)
quaternion是一个标量和一个3D向量的组合。q={ w,x,y,z},Ogre中一个默认的quaternion ={1,0,0,0} ,一般用于空间一点的旋转,假设空间一点叫p,将要旋转角度是α,旋转轴是(x,y,z),那么:p={0,x0,y0,z0}q= {cos(α原创 2011-07-14 10:35:54 · 646 阅读 · 0 评论