• 大小: 58.34MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-18
  • 语言: 其他
  • 标签: DirectX  

资源简介

这是《Introduction to 3D Game Programming with DirectX 11》完整源码Part1 。

资源截图

代码片段和文件信息


/*
#include  // for FLOAT definition
#include 
#include 
using namespace std;

// Overload the  “<<“ operators so that we can use cout to 
// output XMVECTOR objects.
ostream& operator<<(ostream& os FXMVECTOR v)
{
XMFLOAT3 dest;
XMStoreFloat3(&dest v);

os << “(“ << dest.x << “ “ << dest.y << “ “ << dest.z << “)“;
return os;
}

int main()
{
cout.setf(ios_base::boolalpha);

// Check support for SSE2 (Pentium4 AMD K8 and above).
if( !XMVerifyCPUSupport() )
{
cout << “xna math not supported“ << endl;
return 0;
}

XMVECTOR p = XMVectorZero();
XMVECTOR q = XMVectorSplatOne();
XMVECTOR u = XMVectorSet(1.0f 2.0f 3.0f 0.0f);
XMVECTOR v = XMVectorReplicate(-2.0f);
XMVECTOR w = XMVectorSplatZ(u);

cout << “p = “ << p << endl;
cout << “q = “ << q << endl;
cout << “u = “ << u << endl;
cout << “v = “ << v << endl;
cout << “w = “ << w << endl;

return 0;
}
*/

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-11-05 21:49  Common\
     文件        5308  2011-07-10 08:22  Common\Camera.cpp
     文件        2523  2011-07-10 08:22  Common\Camera.h
     文件       13488  2011-04-25 09:16  Common\d3dApp.cpp
     文件        2218  2011-02-28 19:03  Common\d3dApp.h
     文件        6482  2011-09-05 13:07  Common\d3dUtil.cpp
     文件        5094  2011-09-05 12:54  Common\d3dUtil.h
     文件       82808  2010-05-13 17:48  Common\d3dx11effect.h
     文件    15087954  2011-04-10 16:08  Common\Effects11.lib
     文件     5695930  2011-04-10 16:08  Common\Effects11d.lib
     文件        3384  2011-05-09 19:06  Common\GameTimer.cpp
     文件         790  2010-09-11 19:09  Common\GameTimer.h
     文件       18715  2011-07-05 20:09  Common\GeometryGenerator.cpp
     文件        3326  2011-08-07 16:36  Common\GeometryGenerator.h
     文件         278  2011-04-22 10:28  Common\LightHelper.cpp
     文件        1860  2011-04-23 12:40  Common\LightHelper.h
     文件        2379  2011-07-22 12:53  Common\MathHelper.cpp
     文件        1792  2011-07-23 10:10  Common\MathHelper.h
     文件         728  2011-08-07 12:54  Common\TextureMgr.cpp
     文件         682  2011-08-07 10:45  Common\TextureMgr.h
     文件        4901  2011-05-28 11:31  Common\Waves.cpp
     文件        1668  2011-05-28 11:31  Common\Waves.h
     文件      148647  2011-07-19 20:24  Common\xnacollision.cpp
     文件        9295  2010-05-13 17:48  Common\xnacollision.h
     文件        1212  2011-12-23 11:27  Notes.txt
     目录           0  2015-11-05 21:49  Chapter 1 Vector Algebra\
     目录           0  2012-01-29 15:41  Chapter 1 Vector Algebra\XMVECTOR\
     文件         966  2010-06-18 17:49  Chapter 1 Vector Algebra\XMVECTOR\InitFunctions.cpp
     文件         773  2010-06-18 19:57  Chapter 1 Vector Algebra\XMVECTOR\tol.cpp
     文件        1854  2011-11-30 18:42  Chapter 1 Vector Algebra\XMVECTOR\VectorOps.cpp
     文件        2576  2010-06-18 17:59  Chapter 1 Vector Algebra\XMVECTOR\xmvec3.cpp
............此处省略656个文件信息

评论

共有 条评论