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

天行健 君子當自強而不息

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>
            中文有码久久| 亚洲精品视频免费在线观看| 一区二区精品国产| 日韩一级免费| 老司机免费视频一区二区| 欧美在线视频a| 欧美激情亚洲另类| 国产精品久久久久久妇女6080 | 噜噜噜91成人网| 亚洲天堂av图片| 99精品国产在热久久婷婷| 亚洲品质自拍| 国产在线日韩| 99热免费精品在线观看| 午夜精品成人在线| 欧美不卡一卡二卡免费版| 欧美高清在线视频观看不卡| 日韩一区二区免费看| 亚洲欧美制服另类日韩| 免费久久99精品国产自在现线| 欧美成人精品在线| 国产精品视频免费| 亚洲免费伊人电影在线观看av| 欧美成人dvd在线视频| 亚洲天天影视| 麻豆成人综合网| 日韩亚洲欧美精品| 免费的成人av| 亚洲国产精品美女| 欧美高清不卡在线| 男人插女人欧美| 91久久夜色精品国产网站| 免费观看成人www动漫视频| 一区二区三区视频观看| 欧美日韩直播| 午夜精品视频在线观看| 亚洲午夜精品久久久久久浪潮| 欧美激情女人20p| 亚洲视频观看| 香蕉av777xxx色综合一区| 久久亚洲视频| 欧美搞黄网站| 在线亚洲免费| 亚洲一区精品电影| 国产视频在线观看一区二区三区| 欧美一级黄色录像| 久久精品30| 99精品欧美一区二区三区| 99精品视频免费观看| 国产欧美日韩高清| 欧美激情自拍| 国产精品嫩草99av在线| 欧美高潮视频| 国产精品一区二区在线观看不卡| 久久精品国产亚洲5555| 久久夜色精品国产亚洲aⅴ| 日韩一区二区精品| 久久精品国产77777蜜臀| 中文精品一区二区三区| 久久亚洲精品伦理| 欧美在线亚洲| 亚洲精品视频一区二区三区| 国产精品v欧美精品∨日韩| 久久这里有精品视频| 国产精品欧美日韩久久| 亚洲福利视频一区二区| 欧美精品在线极品| 久久免费少妇高潮久久精品99| 中国亚洲黄色| 欧美日韩国产综合一区二区| 最新69国产成人精品视频免费| 国产精品一页| 久久亚洲一区| 亚洲国产成人高清精品| 激情伊人五月天久久综合| 久久精品国产一区二区三| 久久亚洲春色中文字幕| 亚洲国产精品精华液网站| 久久国产乱子精品免费女| 久久久夜夜夜| 亚洲电影自拍| 欧美日韩三区| 性欧美xxxx视频在线观看| 欧美va天堂| 亚洲综合色噜噜狠狠| 国产专区精品视频| 欧美激情国产精品| 亚洲欧美综合国产精品一区| 老司机67194精品线观看| 亚洲精品自在久久| 国产亚洲aⅴaaaaaa毛片| 欧美精品18videos性欧美| 亚洲欧美日韩国产综合精品二区| 在线精品福利| 欧美极品aⅴ影院| 亚洲午夜免费视频| 国内自拍视频一区二区三区 | 欧美另类亚洲| 欧美一区二区在线免费观看| 欧美高清视频免费观看| 亚洲深夜福利网站| 亚洲电影一级黄| 国产精品一级久久久| 免费在线观看精品| 久久久久久久一区二区三区| 亚洲香蕉成视频在线观看| 亚洲高清激情| 欧美成人a∨高清免费观看| 久久久精品tv| 久久久999精品视频| 久久成人国产| 久久精品国产清自在天天线| 久久精品国产在热久久 | 亚洲日本欧美| 亚洲高清免费视频| 99精品欧美一区二区蜜桃免费| 91久久久亚洲精品| 在线综合亚洲| 性色一区二区| 亚洲一区二区三区久久| 亚洲欧美日韩精品一区二区| 久久aⅴ国产欧美74aaa| 久久综合99re88久久爱| 欧美激情精品久久久六区热门 | 欧美电影电视剧在线观看| 亚洲大片免费看| 亚洲一区二区三区777| 欧美在线www| 欧美精品激情在线观看| 亚洲黄色影院| 亚洲自拍啪啪| 欧美激情2020午夜免费观看| 国产农村妇女精品一区二区| 激情久久一区| 欧美一区二区在线看| 欧美激情导航| 久久都是精品| 国产欧美91| 亚洲自拍都市欧美小说| 欧美高清视频在线| 久久久久久久久久久一区| 国产精品久久久久久超碰| 99riav久久精品riav| 欧美激情一区二区三区成人| 久久久久久九九九九| 国产精品欧美风情| 一本一本久久a久久精品综合妖精| 久久久久久久97| 久久超碰97人人做人人爱| 国语自产精品视频在线看一大j8 | 久久精品卡一| 亚洲欧美美女| 国产精品亚洲美女av网站| 亚洲一区亚洲| 亚洲综合精品四区| 国产视频自拍一区| 欧美国产视频日韩| 欧美精品18+| 小黄鸭精品密入口导航| 午夜久久美女| 亚洲欧洲一区二区在线观看| 亚洲精品视频一区| 国产一区二区三区日韩| 欧美高清视频一区| 国产精品社区| 欧美大片在线观看一区二区| 欧美精品一区二区蜜臀亚洲| 欧美性猛交xxxx乱大交蜜桃| 欧美一区二区三区四区在线观看| 久久午夜精品一区二区| 一区二区三区www| 久久九九99视频| 亚洲摸下面视频| 免费在线欧美黄色| 久久精品视频免费播放| 欧美日韩在线另类| 欧美成人a视频| 国内精品视频在线播放| 亚洲线精品一区二区三区八戒| 亚洲国产三级网| 久久五月天婷婷| 裸体丰满少妇做受久久99精品| 国产精品久久一卡二卡| 一区二区三区高清不卡| 亚洲精品国产精品乱码不99 | 欧美xxxx在线观看| 在线观看成人一级片| 久久av资源网| 免费成人高清在线视频| 精品电影在线观看| 久久精品一区二区三区不卡牛牛 | 午夜精品久久久| 国产精品毛片一区二区三区 | 在线视频精品一| 亚洲一卡二卡三卡四卡五卡| 欧美视频中文一区二区三区在线观看| 亚洲国产精品一区二区第一页| 激情五月婷婷综合| 欧美日韩不卡| 久久久精彩视频|