《DirectX+游戏开发终极指南》exe电子书+网页版+源码


《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 < numPoints; i++)
      {
         if(pointList[i].x < m_min.x) m_min.x = pointList[i].x;
         if(pointList[i].x > m_max.x) m_max.x = pointList[i].x;

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

         if(pointList[i].z < m_min.z) m_min.z = 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) < 0.00001f)
      {
         if((ray.m_origin.x < m_min.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 < max) max = t1;
   if(min > max) return false;
   if(max < 0) return false;


   if(fabs(ray.m_direction.y) < 0.00001f)
      {
         if((ray.m_origin.y < m_min.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 < max)  max = t1;
   if(min > max) return false;
   if(max < 0) return false;


   if(fabs(ray.m_direction.z) < 0.00001f)
      {
         if((ray.m_origin.z < m_min.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 < max) max = t1;
   if(min > max) return false;
   if(max < 0) return false;


   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) < 0.00001f)
      {
         if((ray.m_origin.x < m_min.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+游戏开发终极指南源码Projectschapter13GameProject12soundsmenu.wav

     文件       9955  2006-02-09 11:35  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineBoundingGeometry.cpp

     文件       1809  2006-02-09 11:34  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineBoundingGeometry.h

     文件       8330  2006-02-09 11:35  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineCommandscript.cpp

     文件        981  2006-02-09 11:35  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineCommandscript.h

     文件      53296  2006-02-09 11:39  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineD3DRenderer.cpp

     文件       4518  2006-02-09 05:30  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineD3DRenderer.h

     文件       2504  2006-02-09 11:36  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEnginedefines.h

     文件      10988  2006-02-09 11:36  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineDirectInput.cpp

     文件       3688  2006-02-09 11:36  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineDirectInput.h

     文件       8472  2006-02-09 11:33  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineDirectMusic.cpp

     文件       1999  2006-02-09 11:33  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineDirectMusic.h

     文件        461  2006-02-09 11:36  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineengine.h

     文件       3937  2006-02-09 11:34  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineGUI.cpp

     文件       1757  2006-02-09 11:34  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineGUI.h

     文件       1312  2006-02-09 11:36  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineInputInterface.h

     文件        976  2006-02-13 22:26  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEnginelight.h

     文件        687  2006-02-13 22:26  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEnginematerial.h

     文件        427  2006-02-09 11:34  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineMathDefines.h

     文件        466  2006-02-09 11:34  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineMathLibrary.h

     文件       8628  2006-02-09 11:35  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineMatrix.cpp

     文件       1356  2006-02-09 11:34  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineMatrix.h

     文件       8868  2006-02-09 11:33  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineobjLoader.cpp

     文件        475  2006-02-09 11:33  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEngineobjLoader.h

     文件        650  2006-02-09 11:34  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEnginePhysics.h

     文件       5166  2006-02-09 11:35  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEnginePlane.cpp

     文件       1307  2006-02-09 11:34  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEnginePlane.h

     文件       4281  2006-02-09 11:35  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEnginePolygon.cpp

     文件        649  2006-02-09 11:34  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEnginePolygon.h

     文件      10700  2006-02-09 11:35  《DirectX+游戏开发终极指南》exe电子书+网页版《DirectX+游戏开发终极指南》exe电子书+网页版DirectX+游戏开发终极指南源码Projectschapter13GameProject12StrandedEnginePropertyscript.cpp

............此处省略630个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)