DirectX
所属分类:DirextX编程
开发工具:Visual C++
文件大小:6836KB
下载次数:7
上传日期:2013-06-20 13:16:47
上 传 者:
1030825242
说明: DirectX(模型导入拾取测试)bool Direct3D::InitDirect()
{
IDirect3D9 * d3d9
d3d9=Direct3DCreate9(D3D_SDK_VERSION)
D3DPRESENT_PARAMETERS d3dpp
ZeroMemory(&d3dpp,sizeof(d3dpp))
d3dpp.BackBufferHeight=m_fHeight
d3dpp.BackBufferWidth= m_fWidth
d3dpp.BackBufferCount=1
d3dpp.Windowed= m_bWindowed
d3dpp.hDeviceWindow=m_hWnd
d3dpp.BackBufferFormat= D3DFMT_A8R8G8B8
d3dpp.AutoDepthStencilFormat= D3DFMT_D24S8
d3dpp.MultiSampleType= D3DMULTISAMPLE_NONE
d3dpp.EnableAutoDepthStencil= true
d3dpp.Flags=0
d3dpp.SwapEffect=D3DSWAPEFFECT_DISCARD
if(d3d9)
{
HRESULT hr=d3d9->CreateDevice(D3DADAPTER_DEFAULT,m_d3dType,m_hWnd,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&d3dpp,&m_d3dDevice)
if(FAILED(hr))
return false
}
return true
}
(DirectXbool Direct3D::InitDirect()
{
IDirect3D9* d3d9
d3d9=Direct3DCreate9(D3D_SDK_VERSION)
D3DPRESENT_PARAMETERS d3dpp
ZeroMemory(&d3dpp,sizeof(d3dpp))
d3dpp.BackBufferHeight=m_fHeight
d3dpp.BackBufferWidth= m_fWidth
d3dpp.BackBufferCount=1
d3dpp.Windowed= m_bWindowed
d3dpp.hDeviceWindow=m_hWnd
d3dpp.BackBufferFormat= D3DFMT_A8R8G8B8
d3dpp.AutoDepthStencilFormat= D3DFMT_D24S8
d3dpp.MultiSampleType= D3DMULTISAMPLE_NONE
d3dpp.EnableAutoDepthStencil= true
d3dpp.Flags=0
d3dpp.SwapEffect=D3DSWAPEFFECT_DISCARD
if(d3d9)
{
HRESULT hr=d3d9->CreateDevice(D3DADAPTER_DEFAULT,m_d3dType,m_hWnd,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&d3dpp,&m_d3dDevice)
if(FAILED(hr))
return false
}
return true
})
文件列表:
DirectX(模型导入拾取测试) (0, 2013-06-19)
DirectX(模型导入拾取测试)\Debug (0, 2013-06-19)
DirectX(模型导入拾取测试)\Debug\DirectX.exe (159232, 2013-04-17)
DirectX(模型导入拾取测试)\Debug\DirectX.ilk (563956, 2013-04-17)
DirectX(模型导入拾取测试)\Debug\DirectX.pdb (1707008, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX (0, 2013-06-19)
DirectX(模型导入拾取测试)\DirectX\Camera.cpp (2661, 2013-03-13)
DirectX(模型导入拾取测试)\DirectX\Camera.h (763, 2013-04-05)
DirectX(模型导入拾取测试)\DirectX\DXdevice.cpp (4666, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\DXdevice.h (1200, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Debug (0, 2013-06-19)
DirectX(模型导入拾取测试)\DirectX\Debug\BuildLog.htm (15060, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Debug\Camera.obj (22326, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Debug\DXdevice.obj (223325, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Debug\DirectX.exe.embed.manifest (663, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Debug\DirectX.exe.embed.manifest.res (728, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Debug\DirectX.exe.intermediate.manifest (621, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Debug\DirectX.obj (91154, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Debug\DirectX.pch (14286848, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Debug\DirectX.res (48264, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Debug\mt.dep (67, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Debug\stdafx.obj (222080, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Debug\vc90.idb (568320, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Debug\vc90.pdb (921600, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\DirectX.cpp (7112, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\DirectX.h (39, 2013-04-01)
DirectX(模型导入拾取测试)\DirectX\DirectX.ico (23558, 2003-07-24)
DirectX(模型导入拾取测试)\DirectX\DirectX.rc (3365, 2013-04-01)
DirectX(模型导入拾取测试)\DirectX\DirectX.vcproj (5219, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\DirectX.vcproj.123-PC.123.user (1409, 2013-06-19)
DirectX(模型导入拾取测试)\DirectX\DirectX.vcproj.HL-20111118VONO.Administrator.user (1427, 2013-06-12)
DirectX(模型导入拾取测试)\DirectX\DirectX.vcproj.stu5585.Administrator.user (1411, 2013-03-13)
DirectX(模型导入拾取测试)\DirectX\DirectX.vcproj.stu76.Administrator.user (1407, 2013-04-17)
DirectX(模型导入拾取测试)\DirectX\Resource.h (720, 2013-04-01)
DirectX(模型导入拾取测试)\DirectX\airplane 2.x (161266, 2010-05-14)
DirectX(模型导入拾取测试)\DirectX\bihull.bmp (66616, 2010-05-14)
DirectX(模型导入拾取测试)\DirectX\small.ico (23558, 2003-07-24)
DirectX(模型导入拾取测试)\DirectX\stdafx.cpp (212, 2013-04-01)
DirectX(模型导入拾取测试)\DirectX\stdafx.h (459, 2013-04-08)
... ...
========================================================================
WIN32 应用程序:DirectX 项目概述
========================================================================
应用程序向导已为您创建了此 DirectX 应用程序。
本文件概要介绍组成 DirectX 应用程序的
的每个文件的内容。
DirectX.vcproj
这是使用应用程序向导生成的 VC++ 项目的主项目文件,
其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。
DirectX.cpp
这是主应用程序源文件。
/////////////////////////////////////////////////////////////////////////////
应用程序向导创建了下列资源:
DirectX.rc
这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。
此文件可以直接在 Microsoft Visual C++ 中进行编辑。
Resource.h
这是标准头文件,可用于定义新的资源 ID。
Microsoft Visual C++ 将读取并更新此文件。
DirectX.ico
这是一个图标文件,可用作应用程序的图标 (32x32)。
此图标包括在主资源文件 DirectX.rc 中。
small.ico
这是一个图标文件,其中包含应用程序的图标的较小版本 (16x16)。此图标包括在主资源文件 DirectX.rc 中。
/////////////////////////////////////////////////////////////////////////////
其他标准文件:
StdAfx.h, StdAfx.cpp
这些文件用于生成名为 DirectX.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。
/////////////////////////////////////////////////////////////////////////////
其他注释:
应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。
/////////////////////////////////////////////////////////////////////////////
近期下载者:
相关文件:
收藏者: