青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

天行健 君子當自強而不息

DXUT框架剖析(10)

管理DXUT框架的函數

函數 描述
DXUTResetFrameworkState 將框架狀態重置為初始默認狀態,之前設置的框架狀態改變將失效。
DXUTShutdown 觸發程序終止和清空框架
DXUTGetExitCode 獲取框架的退出代碼

 

DXUTResetFrameworkState

Resets DXUT state to its initial default state. All previous DXUT state changes are lost.

 VOID DXUTResetFrameworkState() ;

Parameters

None.

Return Values

No return value.

Remarks

This function does not normally need to be called. It is useful for testing purposes because the application process does not have to be restarted to reset DXUT back to its initial state.

 

DXUTShutdown

Triggers program termination and DXUT cleanup.

 VOID DXUTShutdown( 
int nExitCode
) ;

Parameters

nExitCode
[in] The exit code returned via the DXUTGetExitCode function. The default value is 0

Return Values

No return value.

Remarks

It is not necessary for the application to call this function, since the application lifespan is handled by DXUT. However, the application can call this function to cleanly terminate the application process.

 

DXUTGetExitCode

Get DXUT exit code.

 INT DXUTGetExitCode() ;

Parameters

None.

Return Values

A DXUT exit code, which will be one of the following possible values.

Value Description
0 Successful execution.
1 An undetermined error occurred.
2 No Direct3D device could be found with the specified device settings.
3 A media file could not be found.
4 The Direct3D device has a non-zero reference count, meaning that some objects were not released.
5 An error occurred when attempting to create an Direct3D device.
6 An error occurred when attempting to reset an Direct3D device.
7 An error occurred in the device creation callback function.
8 An error occurred in the device creation callback function.
9 The incorrect version of Direct3D or D3DX is installed.
10 The last device used upon exit was a REF device type.
11 The device was removed.
 

Remarks

The return value of this function is typically used in the application as the return code of the application's WinMain function. Command-line tests can then be performed on applications using this return code.

The following is an example of command-line usage that uses DXUT exit code:

start /wait BasicHLSL.exe
echo %errorlevel%

 

檢索Direct3D變量的函數

函數 描述
DXUTGetD3DObject 獲取一個指向IDirect3D9對象的指針
DXUTGetD3D9Device 獲取一個指向代表當前設備的IDirect3DDevice9接口指針
DXUTGetDeviceSettings 獲取用來創建當前設備的結構體DXUTDeviceSettings
DXUTGetPresentParameters 獲取當前設備的提交(presentation)參數
DXUTGetD3D9BackBufferSurfaceDesc 獲取一個指向當前設備后臺緩沖區表面的D3DSURFACE_DESC結構體的指針
DXUTGetD3D9DeviceCaps 獲取一個指向當前設備的D3DCAPS9結構體的指針

 

DXUTGetD3DObject

Get a pointer to the IDirect3D9 object.

 IDirect3D9 * DXUTGetD3DObject() ;

Parameters

None.

Return Values

Pointer to the IDirect3D9 object. NULL is returned if no IDirect3D9 object has been created. See Remarks.

Remarks

This function exposes access to a global IDirect3D9 object. The reference count on this object interface is not incremented, so a calling function should not release the IDirect3D9 interface pointer returned by this function.

 

DXUTGetDeviceSettings

Get the DXUTDeviceSettings structure used to create the current device.

 DXUTDeviceSettings DXUTGetDeviceSettings() ;

Parameters

None.

Return Values

DXUTDeviceSettings structure used to create the current device.

Remarks

This settings structure can describe either a Direct3D 9 device or a Direct3D 10 device as defined the structure's DXUTDeviceVersion member.

If no device exists, then the DXUTDeviceSettings structure is filled with zeros.

 

DXUTGetPresentParameters

Get the presentation parameters of the Direct3D 9 device.

 D3DPRESENT_PARAMETERS DXUTGetPresentParameters() ;

Parameters

None.

Return Values

The presentation parameters of the Direct3D 9 device.

Remarks

If no Direct3D 9 device exists, then the D3DPRESENT_PARAMETERS structure is filled with zeros.

 

DXUTGetD3D9BackBufferSurfaceDesc

Get a pointer to a D3DSURFACE_DESC surface description of the current Direct3D 9 back buffer.

 CONST D3DSURFACE_DESC * DXUTGetD3D9BackBufferSurfaceDesc() ;

Parameters

None.

Return Values

Pointer to a D3DSURFACE_DESC surface description of the current Direct3D 9 back buffer.

Remarks

If no Direct3D 9 device exists, then the D3DSURFACE_DESC structure is filled with zeros.

 

DXUTGetD3D9DeviceCaps

Get a pointer to the D3DCAPS9 capabilities of the current device.

 CONST D3DCAPS9 * DXUTGetD3D9DeviceCaps() ;

Parameters

None.

Return Values

Pointer to the D3DCAPS9 capabilities of the Direct3D 9 device.

Remarks

If no Direct3D 9 device exists, then the D3DCAPS9 structure is filled with zeros.


 

posted on 2008-05-16 21:09 lovedday 閱讀(2359) 評論(0)  編輯 收藏 引用


只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


公告

導航

統計

常用鏈接

隨筆分類(178)

3D游戲編程相關鏈接

搜索

最新評論

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            麻豆91精品| 亚洲福利精品| 亚洲欧美成人网| 亚洲欧美精品一区| 先锋影音久久| 久久久夜精品| 欧美精品色一区二区三区| 欧美日韩精品免费观看| 国产精品国内视频| 国产欧美va欧美va香蕉在| 国产亚洲精品激情久久| 在线日本高清免费不卡| 亚洲最新在线| 久久精品国产久精国产思思| 久久午夜羞羞影院免费观看| 欧美激情一区二区三区在线| 日韩视频在线一区二区| 小嫩嫩精品导航| 欧美成人第一页| 国产精品久久久久久久第一福利| 蜜臀91精品一区二区三区| 伊人久久噜噜噜躁狠狠躁| 亚洲免费电影在线观看| 欧美一区二区在线观看| 久久亚洲综合| 亚洲一区尤物| 欧美另类videos死尸| 国产视频欧美| 亚洲综合精品自拍| 欧美91视频| 亚洲欧美日韩久久精品| 欧美激情中文不卡| 在线欧美电影| 午夜精品影院| 一区二区三区导航| 欧美成人精品在线视频| 国产一本一道久久香蕉| 午夜电影亚洲| 亚洲免费高清| 欧美精品一区在线发布| 亚洲国产精品123| 久久久久久久久久久成人| 亚洲美女福利视频网站| 免费看黄裸体一级大秀欧美| 狠狠狠色丁香婷婷综合久久五月| 亚洲欧美欧美一区二区三区| 亚洲精品久久久久久久久久久| 久久er精品视频| 国产亚洲欧美日韩精品| 欧美一区免费视频| 亚洲欧美日韩一区二区三区在线观看 | 欧美一级专区| 国产精品国产三级国产专播精品人| 亚洲国产精品高清久久久| 久久伊伊香蕉| 久久成人在线| 樱花yy私人影院亚洲| 久久久久久九九九九| 欧美一区二区三区四区夜夜大片 | 亚洲欧美中文字幕| 欧美日韩免费在线| 亚洲香蕉成视频在线观看| 99re8这里有精品热视频免费| 欧美日本韩国一区二区三区| 亚洲免费av网站| 日韩视频免费观看| 国产精品久久久久高潮| 午夜一区不卡| 久久久精品视频成人| 在线精品视频免费观看| 欧美丰满高潮xxxx喷水动漫| 美女网站久久| 一本色道久久| 亚洲天堂成人在线观看| 欧美一区二粉嫩精品国产一线天| 亚洲日本va午夜在线影院| 久久综合网hezyo| 亚洲欧洲在线一区| 一区二区久久久久久| 国产麻豆成人精品| 欧美成人中文| 国产精品国产三级国产aⅴ入口| 亚洲欧美日韩在线综合| 久久国产黑丝| 亚洲伦理精品| 性欧美大战久久久久久久免费观看 | 欧美成人精品福利| 亚洲一区在线观看视频 | 娇妻被交换粗又大又硬视频欧美| 久久综合久久久久88| 欧美日韩国产电影| 久久不射网站| 欧美激情一区二区三区不卡| 亚洲欧美在线免费| 欧美风情在线| 久久人人超碰| 国产精品xxxxx| 欧美不卡视频一区发布| 国产精品久久久久aaaa樱花| 久久伊人一区二区| 欧美三级网页| 亚洲国产精品久久精品怡红院| 国产精品一卡二卡| 亚洲美女av电影| 亚洲国产精品va在线看黑人| 亚洲色诱最新| 日韩视频一区| 久久久综合激的五月天| 欧美在线视频二区| 欧美午夜精品久久久久久人妖| 欧美成人a视频| 国产一区二区三区的电影| 日韩写真在线| 亚洲毛片在线观看| 久久久久国产成人精品亚洲午夜| 亚洲女同性videos| 欧美日韩在线播| 亚洲欧洲日产国产综合网| 国模私拍一区二区三区| 亚洲综合日本| 欧美一级淫片播放口| 欧美亚一区二区| 一区二区精品| 亚洲在线中文字幕| 国产精品扒开腿做爽爽爽软件| 亚洲精品国产精品国自产在线| 亚洲精品视频二区| 欧美不卡视频| 亚洲黄色av一区| 亚洲乱码国产乱码精品精| 欧美成人中文| 亚洲欧洲日本专区| 亚洲精品一区二区三区樱花| 在线日本欧美| 欧美日韩午夜| 亚洲国产高清高潮精品美女| 亚洲福利久久| 欧美另类视频| 99精品国产在热久久下载| 在线视频精品一| 国产精品毛片在线| 欧美一级理论片| 可以看av的网站久久看| 精品av久久707| 欧美va亚洲va国产综合| 亚洲久久一区| 欧美一级专区免费大片| 国内精品久久久久影院优| 久久亚裔精品欧美| 最新成人av网站| 香蕉精品999视频一区二区| 国产一区二区电影在线观看 | 久久久久久亚洲精品中文字幕| 国产一区二区三区四区| 久久久久久久网站| 亚洲精品国产品国语在线app| 亚洲一区二区视频在线| 国产精品呻吟| 久久精品综合一区| 亚洲国产欧美一区| 亚洲综合色自拍一区| 国产精品美女久久久久久免费| 亚洲欧美日韩直播| 亚洲第一色在线| 午夜欧美不卡精品aaaaa| 一区二区三区在线观看国产| 欧美精品www在线观看| 亚洲校园激情| 欧美高清在线视频观看不卡| 亚洲香蕉成视频在线观看| 好吊视频一区二区三区四区| 欧美日本精品在线| 久久精品人人做人人爽| 99re6热在线精品视频播放速度| 久久国产精品一区二区| 日韩视频免费观看| 国模 一区 二区 三区| 欧美精品色网| 老鸭窝91久久精品色噜噜导演| 亚洲无线视频| 亚洲精品麻豆| 久久躁日日躁aaaaxxxx| 午夜精品久久一牛影视| 亚洲精品视频免费观看| 黄色免费成人| 国产精品视频大全| 欧美日精品一区视频| 欧美成人激情视频| 久久精品在线观看| 午夜精品一区二区三区在线播放| 亚洲精品国产精品乱码不99| 欧美成人资源| 久久女同互慰一区二区三区| 亚洲中无吗在线| 在线视频免费在线观看一区二区| 一区在线免费观看| 狠狠狠色丁香婷婷综合激情| 国产精品白丝jk黑袜喷水| 欧美日韩免费观看一区二区三区| 欧美高清不卡在线|