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

天行健 君子當自強而不息

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>
            9l国产精品久久久久麻豆| 一本色道久久综合| 在线成人亚洲| 欧美日韩一二三区| 欧美一区在线直播| 亚洲天堂av在线免费观看| 亚洲高清在线| 久久尤物视频| 亚洲人在线视频| 一区福利视频| 国产视频久久久久| 欧美绝品在线观看成人午夜影视 | 日韩小视频在线观看| 国产深夜精品福利| 国产精品日韩欧美一区| 亚洲美女黄网| 最新成人在线| 久久久久久久一区二区三区| 欧美一区二区视频97| 欧美亚洲综合另类| 欧美一区二区三区的| 欧美一级午夜免费电影| 久久成人免费日本黄色| 欧美一区二视频在线免费观看| 亚洲一区二区成人在线观看| 一本一本久久a久久精品牛牛影视| 亚洲高清自拍| 99re8这里有精品热视频免费| 亚洲精品日韩久久| 亚洲私拍自拍| 香港成人在线视频| 久久深夜福利| 午夜精品久久久久久| 欧美一区二区三区精品| 久久精品成人| 欧美高清在线观看| 亚洲精品视频在线看| 亚洲欧美在线免费观看| 欧美巨乳波霸| 亚洲人www| 久久综合影视| 欧美一区二区精品在线| 欧美性生交xxxxx久久久| ●精品国产综合乱码久久久久| 亚洲综合社区| 亚洲伦理网站| 欧美激情影院| 亚洲精品在线视频| 欧美国产日韩一二三区| 欧美一区二区三区免费看| 欧美精品国产精品| 国产精品网站一区| 亚洲图片欧洲图片日韩av| 在线视频日韩精品| 欧美精品久久久久久久| 一区在线播放视频| 午夜精品免费视频| 一本久道综合久久精品| 欧美日韩成人精品| 亚洲人成网站999久久久综合| 玖玖在线精品| 久久蜜桃av一区精品变态类天堂| 国产色视频一区| 久久久精品日韩欧美| 欧美一二区视频| 国产一区二区三区久久精品| 午夜精品偷拍| 亚洲一区国产| 国产精品夜色7777狼人| 午夜久久久久久久久久一区二区| 日韩视频免费| 国产精品久久波多野结衣| 亚洲视频www| 99re6这里只有精品| 欧美天天在线| 欧美一区二区高清在线观看| 性欧美暴力猛交另类hd| 国内精品久久久久久久影视麻豆| 久久九九免费视频| 久久久欧美一区二区| 亚洲国产精品美女| 亚洲国产一区二区a毛片| 免费观看在线综合色| 亚洲另类黄色| 正在播放亚洲一区| 国产有码一区二区| 欧美激情成人在线| 欧美午夜精品一区| 久久久综合精品| 欧美激情亚洲视频| 亚洲女人av| 久久综合亚州| 夜夜夜久久久| 欧美一区二区视频在线| 性欧美大战久久久久久久久| 国产欧美日韩不卡| 欧美国产第二页| 欧美日韩三级一区二区| 久久精品毛片| 欧美剧在线免费观看网站| 亚洲欧美视频在线观看| 久久久精品午夜少妇| 99精品免费网| 久久久久天天天天| 午夜精品在线| 久久综合久久综合久久| 亚洲综合日韩在线| 久久亚洲色图| 亚洲欧美日韩国产另类专区| 久久久999| 亚洲欧美日韩中文视频| 欧美va亚洲va香蕉在线| 久久国产精彩视频| 欧美日韩另类综合| 国产精品免费看久久久香蕉| 激情欧美一区二区三区| 亚洲精品乱码久久久久| 国产麻豆日韩欧美久久| 亚洲国产精品视频一区| 国产日产亚洲精品| 91久久精品日日躁夜夜躁欧美| 国产精品高潮粉嫩av| 亚洲大胆在线| 国产一区二区三区网站| 日韩视频永久免费| 亚洲美女淫视频| 美女久久一区| 久热精品在线| 国产性天天综合网| 亚洲欧美日韩网| 亚洲一区二区欧美| 欧美精品免费视频| 亚洲国产精品小视频| 1000部精品久久久久久久久| 性欧美xxxx大乳国产app| 性感少妇一区| 国产精品一区二区久久久久| 在线视频免费在线观看一区二区| 亚洲人成毛片在线播放女女| 久久久美女艺术照精彩视频福利播放 | 国产乱码精品一区二区三| 亚洲国产精品美女| 亚洲精品乱码久久久久久| 免费久久久一本精品久久区| 免费成人黄色片| 一区精品在线| 久久亚洲二区| 欧美va天堂在线| 亚洲欧洲一区二区三区久久| 牛夜精品久久久久久久99黑人| 欧美国产日韩在线观看| 亚洲人成网在线播放| 欧美日韩成人在线| 妖精成人www高清在线观看| 亚洲素人一区二区| 国产精品私拍pans大尺度在线| 亚洲免费一级电影| 乱码第一页成人| 亚洲精品一区二区三区四区高清 | 国产精品一区二区三区乱码| 亚洲午夜久久久久久尤物| 性做久久久久久免费观看欧美 | 国产精品国产一区二区| 亚洲自拍高清| 久久精品日韩欧美| 亚洲第一精品福利| 欧美精品久久99| 亚洲无限av看| 久久婷婷国产综合国色天香| 亚洲高清在线观看一区| 欧美精品一区二区视频| 亚洲综合视频网| 免费观看国产成人| 久久国产欧美日韩精品| 亚洲高清电影| 欧美风情在线观看| 亚洲午夜一区| 久久久久久久久岛国免费| 精品成人在线视频| 欧美视频日韩| 久久在线播放| 中文av一区二区| 欧美激情免费观看| 欧美一区二区三区免费观看视频| 亚洲第一网站免费视频| 欧美日韩一区二区三区免费看| 欧美一区二区视频观看视频| 亚洲电影成人| 久久免费精品日本久久中文字幕| 亚洲国产精品va在线观看黑人| 欧美三日本三级少妇三2023| 久久精品夜色噜噜亚洲a∨| 亚洲免费av片| 免费国产一区二区| 欧美伊人影院| 亚洲一区精彩视频| 亚洲免费成人| 在线不卡免费欧美| 国产乱码精品| 国产精品高潮呻吟久久av无限|