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

天行健 君子當自強而不息

DXUT框架剖析(10)

管理DXUT框架的函數(shù)

函數(shù) 描述
DXUTResetFrameworkState 將框架狀態(tài)重置為初始默認狀態(tài),之前設置的框架狀態(tài)改變將失效。
DXUTShutdown 觸發(fā)程序終止和清空框架
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變量的函數(shù)

函數(shù) 描述
DXUTGetD3DObject 獲取一個指向IDirect3D9對象的指針
DXUTGetD3D9Device 獲取一個指向代表當前設備的IDirect3DDevice9接口指針
DXUTGetDeviceSettings 獲取用來創(chuàng)建當前設備的結構體DXUTDeviceSettings
DXUTGetPresentParameters 獲取當前設備的提交(presentation)參數(shù)
DXUTGetD3D9BackBufferSurfaceDesc 獲取一個指向當前設備后臺緩沖區(qū)表面的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)  編輯 收藏 引用


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


公告

導航

統(tǒng)計

常用鏈接

隨筆分類(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>
            亚洲缚视频在线观看| 一本久道久久综合中文字幕| 欧美激情性爽国产精品17p| 欧美国内亚洲| 日韩亚洲在线| 国产精品久久久久久久9999| 亚洲精品精选| 国产精品99一区| 久久久人成影片一区二区三区| 亚洲欧洲日韩在线| 午夜精品99久久免费| 久久手机免费观看| 亚洲一区影院| 在线精品观看| 国产精品系列在线播放| 久久在线免费视频| 99视频有精品| 欧美激情第三页| 久久疯狂做爰流白浆xx| 国产精品99久久不卡二区| 国内久久婷婷综合| 国产精品亚洲综合久久| 男同欧美伦乱| 免费中文日韩| 欧美中文字幕在线观看| 亚洲性线免费观看视频成熟| 欧美激情一区三区| 久久天堂成人| 亚洲黄一区二区| 国产一区二区高清视频| 国产乱理伦片在线观看夜一区| 欧美精品一区二区三区蜜桃| 久久亚洲精品中文字幕冲田杏梨| 午夜精品久久久久久99热| 中日韩美女免费视频网址在线观看| 欧美激情bt| 亚洲欧美亚洲| 亚洲综合激情| 亚洲欧美在线视频观看| 亚洲欧美日韩在线播放| 小黄鸭视频精品导航| 国产一区二区久久久| 国产一区二区三区四区五区美女| 国产私拍一区| 亚洲第一精品电影| 亚洲区一区二区三区| 国产精品免费小视频| 国产精品美女一区二区| 国产伦精品一区二区三| 国产亚洲欧洲| 亚洲国产aⅴ天堂久久| 一区二区三区毛片| 99视频在线精品国自产拍免费观看 | 欧美日韩一区二区在线观看视频 | 久久久久久久激情视频| 午夜国产不卡在线观看视频| 久久国产精品久久国产精品 | 亚洲欧洲视频| 亚洲美女精品成人在线视频| 亚洲午夜精品一区二区三区他趣 | 欧美在线free| 久久久久国产精品午夜一区| 免费看av成人| 久久久久久亚洲精品中文字幕| 亚洲乱码国产乱码精品精| 亚洲日本电影| 亚洲香蕉视频| 老鸭窝亚洲一区二区三区| 亚洲免费影视| 欧美日韩免费精品| 国产精品红桃| 午夜精品一区二区三区在线播放 | 亚洲黄色片网站| 欧美激情第1页| 亚洲乱码国产乱码精品精可以看 | 亚洲靠逼com| 亚洲一区二区少妇| 国产欧美综合在线| 久久精品一本| 亚洲国产欧美另类丝袜| 亚洲精品久久久一区二区三区| 免费在线观看日韩欧美| 亚洲乱码一区二区| 欧美在线视频一区二区| 在线日韩一区二区| 欧美日韩亚洲激情| 亚洲欧美日韩高清| 亚洲二区三区四区| 亚洲欧美日本在线| 伊人久久亚洲影院| 欧美日韩免费精品| 欧美亚洲在线播放| 亚洲国产一区在线观看| 日韩午夜免费| 午夜宅男久久久| 欧美高清视频一区二区| 亚洲一区成人| 在线观看日韩欧美| 欧美视频亚洲视频| 久久久久久久网| 在线亚洲一区观看| 欧美不卡在线视频| 欧美在线观看一区| 尤物99国产成人精品视频| 欧美日韩亚洲一区二| 久久久777| 亚洲色图制服丝袜| 亚洲国产成人tv| 久久精品一级爱片| 亚洲一区二区三区中文字幕在线| 国产综合久久久久久| 欧美午夜在线视频| 免费视频最近日韩| 欧美亚洲自偷自偷| 亚洲午夜免费视频| 91久久午夜| 欧美成人精品在线视频| 久久国产精品99国产精| 亚洲一区二区在线| 一本色道**综合亚洲精品蜜桃冫 | 亚洲黄色视屏| 久久综合九色综合欧美狠狠| 午夜日韩激情| 亚洲视频综合在线| 99精品热6080yy久久| 亚洲大胆av| 国内精品视频久久| 国产欧美一二三区| 国产精品欧美激情| 欧美日韩综合久久| 欧美国产日本韩| 欧美成人69| 欧美不卡视频一区发布| 老司机午夜精品视频| 久久久久久久综合色一本| 新狼窝色av性久久久久久| 亚洲女同在线| 在线中文字幕一区| 亚洲图片在线观看| 亚洲一区二区三区激情| 一区二区三区视频在线看| 亚洲免费观看在线视频| 亚洲欧洲一区二区三区| 亚洲日本一区二区三区| 日韩视频一区| 一本色道久久综合精品竹菊 | 一区福利视频| 激情欧美一区二区三区在线观看| 国产亚洲激情| 韩日欧美一区二区| 一区二区三区我不卡| 亚洲第一精品福利| 亚洲狠狠婷婷| 亚洲美女精品久久| 亚洲最新色图| 亚洲欧美电影院| 欧美在线播放高清精品| 久久在精品线影院精品国产| 欧美高清在线一区| 日韩视频精品在线| 亚洲一区日本| 欧美中文字幕在线| 毛片精品免费在线观看| 欧美精品一区在线发布| 国产精品久久久久毛片软件| 国产亚洲成av人在线观看导航| 亚洲美女在线视频| 亚洲午夜在线观看| 久久久成人精品| 欧美激情国产日韩精品一区18| 欧美日韩在线影院| 国产性做久久久久久| 亚洲第一精品久久忘忧草社区| 亚洲精品影视| 午夜精品久久久久久| 老牛嫩草一区二区三区日本| 亚洲国产91| 亚洲在线视频观看| 另类天堂视频在线观看| 欧美日韩中文字幕日韩欧美| 国内精品写真在线观看| 一区二区三区高清在线| 久久久av毛片精品| 亚洲三级影片| 久久精品夜色噜噜亚洲aⅴ| 欧美日韩国产系列| 韩国欧美一区| 亚洲午夜精品久久| 欧美成人精品一区| 亚洲欧美日韩在线一区| 欧美国产成人精品| 韩曰欧美视频免费观看| 国产精品99久久久久久人| 久久精品亚洲乱码伦伦中文 | 国产美女精品视频| 亚洲精品一区二区三区四区高清 | 欧美日韩精品高清| 伊伊综合在线| 性欧美长视频| 亚洲级视频在线观看免费1级|