91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 17.17MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發布日期: 2023-07-31
  • 語言: 其他
  • 標簽: 網頁版??源碼??

資源簡介

《DirectX+游戲開發終極指南》exe電子書+網頁版 很不錯的一本書,附帶有全部源碼,加電子版和網頁版的書,文件較大 三個壓縮分卷 壓縮第二卷

資源截圖

代碼片段和文件信息

/*
???Demo?Name:??Game?Project?12
??????Author:??Allen?Sherrod
?????Chapter:??Chapter?13
*/


#include“BoundingGeometry.h“


void?CBoundingBox::CreateFromPoints(CVector3?*pointList?int?numPoints)
{
???//?Loop?through?all?of?the?points?to?find?the?min/max?values.
???for(int?i?=?0;?i???????{
?????????if(pointList[i].x??????????if(pointList[i].x?>?m_max.x)?m_max.x?=?pointList[i].x;

?????????if(pointList[i].y??????????if(pointList[i].y?>?m_max.y)?m_max.y?=?pointList[i].y;

?????????if(pointList[i].z??????????if(pointList[i].z?>?m_max.z)?m_max.z?=?pointList[i].z;
??????}
}


bool?CBoundingBox::isPointInside(CVector3?&v)
{
???if(m_max.x?<=?v.x)?return?false;
???if(m_min.x?>=?v.x)?return?false;
???if(m_max.y?<=?v.y)?return?false;
???if(m_min.y?>=?v.y)?return?false;
???if(m_max.z?<=?v.z)?return?false;
???if(m_min.z?>=?v.z)?return?false;

???return?true;
}


bool?CBoundingBox::Intersect(CRay?ray?float?*dist)
{
???float?t0?t1?temp;
???float?min?=?-999999.9f;
???float?max?=?999999.9f;

???if(fabs(ray.m_direction.x)???????{
?????????if((ray.m_origin.x?????????????(ray.m_origin.x?>?m_max.x))?return?false;
??????}

???t0?=?(m_min.x?-?ray.m_origin.x)?/?ray.m_direction.x;
???t1?=?(m_max.x?-?ray.m_origin.x)?/?ray.m_direction.x;

???if(t0?>?t1)?{?temp?=?t0;?t0?=?t1;?t1?=?temp;?}
???if(t0?>?min)?min?=?t0;
???if(t1????if(min?>?max)?return?false;
???if(max?

???if(fabs(ray.m_direction.y)???????{
?????????if((ray.m_origin.y?????????????(ray.m_origin.y?>?m_max.y))?return?false;
??????}

???t0?=?(m_min.y?-?ray.m_origin.y)?/?ray.m_direction.y;
???t1?=?(m_max.y?-?ray.m_origin.y)?/?ray.m_direction.y;

???if(t0?>?t1)?{?temp?=?t0;?t0?=?t1;?t1?=?temp;?}
???if(t0?>?min)?min?=?t0;
???if(t1????if(min?>?max)?return?false;
???if(max?

???if(fabs(ray.m_direction.z)???????{
?????????if((ray.m_origin.z?????????????(ray.m_origin.z?>?m_max.z))?return?false;
??????}

???t0?=?(m_min.z?-?ray.m_origin.z)?/?ray.m_direction.z;
???t1?=?(m_max.z?-?ray.m_origin.z)?/?ray.m_direction.z;

???if(t0?>?t1)?{?temp?=?t0;?t0?=?t1;?t1?=?temp;?}
???if(t0?>?min)?min?=?t0;
???if(t1????if(min?>?max)?return?false;
???if(max?

???if(min?>?0)?if(dist)?*dist?=?min;
???else?if(dist)?*dist?=?max;

???return?true;
}


bool?CBoundingBox::Intersect(CRay?ray?float?length?float?*dist)
{
???float?t0?t1?temp;
???float?min?=?-999999.9f;
???float?max?=?999999.9f;
???float?d?=?0;

???if(fabs(ray.m_direction.x)???????{
?????????if((ray.m_origin.x?????????????(ray.m_origin.x?>?m_max.x))?return?false;
??????}

???t0?=?(m_min.x?-?ray.m_origin.x)?/?ray.m_direction.x;
???

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????4130428??2006-01-29?03:39??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\sounds\menu.wav

?????文件???????9955??2006-02-09?11:35??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\BoundingGeometry.cpp

?????文件???????1809??2006-02-09?11:34??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\BoundingGeometry.h

?????文件???????8330??2006-02-09?11:35??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\Commandscript.cpp

?????文件????????981??2006-02-09?11:35??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\Commandscript.h

?????文件??????53296??2006-02-09?11:39??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\D3DRenderer.cpp

?????文件???????4518??2006-02-09?05:30??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\D3DRenderer.h

?????文件???????2504??2006-02-09?11:36??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\defines.h

?????文件??????10988??2006-02-09?11:36??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\DirectInput.cpp

?????文件???????3688??2006-02-09?11:36??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\DirectInput.h

?????文件???????8472??2006-02-09?11:33??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\DirectMusic.cpp

?????文件???????1999??2006-02-09?11:33??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\DirectMusic.h

?????文件????????461??2006-02-09?11:36??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\engine.h

?????文件???????3937??2006-02-09?11:34??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\GUI.cpp

?????文件???????1757??2006-02-09?11:34??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\GUI.h

?????文件???????1312??2006-02-09?11:36??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\InputInterface.h

?????文件????????976??2006-02-13?22:26??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\light.h

?????文件????????687??2006-02-13?22:26??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\material.h

?????文件????????427??2006-02-09?11:34??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\MathDefines.h

?????文件????????466??2006-02-09?11:34??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\MathLibrary.h

?????文件???????8628??2006-02-09?11:35??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\Matrix.cpp

?????文件???????1356??2006-02-09?11:34??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\Matrix.h

?????文件???????8868??2006-02-09?11:33??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\objLoader.cpp

?????文件????????475??2006-02-09?11:33??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\objLoader.h

?????文件????????650??2006-02-09?11:34??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\Physics.h

?????文件???????5166??2006-02-09?11:35??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\Plane.cpp

?????文件???????1307??2006-02-09?11:34??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\Plane.h

?????文件???????4281??2006-02-09?11:35??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\Polygon.cpp

?????文件????????649??2006-02-09?11:34??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\Polygon.h

?????文件??????10700??2006-02-09?11:35??《DirectX+游戲開發終極指南》exe電子書+網頁版\《DirectX+游戲開發終極指南》exe電子書+網頁版\DirectX+游戲開發終極指南源碼\Projects\chapter13\GameProject12\StrandedEngine\Propertyscript.cpp

............此處省略630個文件信息

評論

共有 條評論

相關資源