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

天行健 君子當自強而不息

DXUT框架剖析(9)

下面列出允許改變DXUT行為和獲取內部變量的函數,這些函數在使用DXUT框架的Direct3D程序中是非常實用的。

 

管理窗口的DXUT函數

函數 描述
DXUTGetHINSTANCE 獲取應用程序實例的句柄
DXUTGetHWND 獲取當前設備窗口的句柄
DXUTGetHWNDFocus 獲取當前獲得焦點的窗口的句柄
DXUTGetHWNDDeviceFullScreen 獲取全屏模式設備窗口的句柄
DXUTGetHWNDDeviceWindowed 獲取窗口模式設備窗口的句柄
DXUTGetWindowClientRect 獲取應用程序設備窗口的客戶區矩形
DXUTGetWindowTitle 獲取指向應用程序窗口標題的指針
DXUTIsWindowed 檢查應用程序是否處在窗口模式下

 

DXUTGetHINSTANCE

Get a handle to the application instance.

HINSTANCE DXUTGetHINSTANCE();

Parameters

None.

Return Values

A handle to the application instance.

 

DXUTGetHWND

Get a handle to the current device window.

HWND DXUTGetHWND();

Parameters

None.

Return Values

A handle to the current device window.

 

DXUTGetHWNDFocus

Get the handle of the focus window.

HWND DXUTGetHWNDFocus();

Parameters

None.

Return Values

Handle to the focus window.

Remarks

The focus window informs Direct3D when the application is switched to a background window with an ALT+TAB key entry, a mouse click, or by other means. It is typically the same window as the device window.

 

DXUTGetHWNDDeviceFullScreen

Get the handle of the device window used when the application is fullscreen.

HWND DXUTGetHWNDDeviceFullScreen();

Parameters

None.

Return Values

Returns a handle of the device window used when the application is fullscreen.

 

DXUTGetHWNDDeviceWindowed

Get the handle of the device window used when the application is windowed.

HWND DXUTGetHWNDDeviceWindowed();

Parameters

None.

Return Values

Returns a handle of the device window used when the application is windowed.

 

DXUTGetWindowClientRect

Get the current client RECT of the application window.

CONST RECT * DXUTGetWindowClientRect();

Parameters

None.

Return Values

Returns the current client RECT of the application window.

 

DXUTGetWindowTitle

Get a pointer to a string containing the application window title.

LPCWSTR DXUTGetWindowTitle();

Parameters

None.

Return Values

Pointer to a string containing the application window title.

 

DXUTIsWindowed

Indicates whether the application is in windowed mode.

BOOL DXUTIsWindowed();

Parameters

None.

Return Values

If TRUE, the application is in windowed mode. If the application is not in windowed mode, or no device exists, then FALSE is returned.

 

管理設備的DXUT函數

函數 描述
DXUTSetCursorSettings 為全屏模式下光標的用法設置選項
DXUTSetMultimonSettings 為框架如何在多顯示器配置中工作設置選項
DXUTToggleFullscreen 使應用程序在窗口模式和全屏模式間切換
DXUTToggleREF 使應用程序在硬件抽象層和參考設備間切換

 

DXUTSetCursorSettings

Sets options for cursor usage in full-screen mode.

HRESULT DXUTSetCursorSettings(
bool bShowCursorWhenFullScreen,
bool bClipCursorWhenFullScreen
);

Parameters

bShowCursorWhenFullScreen
[in] Cursor visibility flag. If true, the cursor will be visible when the application is running in full-screen mode.
bClipCursorWhenFullScreen
[in] Cursor clipping flag. If true, the cursor will be restricted from exiting the screen boundaries when the application is running in full screen mode.

Return Values

If the function succeeds, the return value is S_OK. If the function fails, the return value can be one of the error codes in DXUTERR.

 

DXUTSetMultimonSettings

Sets options for how DXUT functions on multiple monitors.

VOID DXUTSetMultimonSettings(
BOOL bAutoChangeAdapter
);

Parameters

bAutoChangeAdapter
[in] If TRUE and the application window is relocated to a different monitor, DXUT will automatically change to use the new monitor's adapter, and device callback functions will be called to recreate the scene.

Return Values

No return value.

 

DXUTToggleFullscreen

Switches the application between windowed and full-screen modes.

HRESULT DXUTToggleFullscreen();

Parameters

None.

Return Values

If the function succeeds, the return value is S_OK. If the function fails, the return value can be one of the error codes in DXUTERR.

Remarks

This function works regardless of which Direct3D API version the application is using.

Toggling between windowed and full-screen modes will result in swap chain being resized if using Direct3D 10, or the device being reset or recreated if using Direct3D 9.

 

DXUTToggleREF

Switches the application between HAL and reference device types.

HRESULT DXUTToggleREF();

Parameters

None.

Return Values

If the function succeeds, the return value is S_OK. If the function fails, the return value can be one of the error codes in DXUTERR.

Remarks

This function works regardless of which Direct3D API version the application is using.


posted on 2008-05-16 19:13 lovedday 閱讀(1147) 評論(0)  編輯 收藏 引用

公告

導航

統計

常用鏈接

隨筆分類(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>
            亚洲一级影院| 久热爱精品视频线路一| 性欧美暴力猛交另类hd| 亚洲人成亚洲人成在线观看图片 | 亚洲免费在线观看| 亚洲婷婷国产精品电影人久久| 日韩网站在线观看| 亚洲视频在线观看三级| 午夜精品久久久久久久白皮肤| 亚洲欧美日韩在线综合| 欧美资源在线观看| 欧美成人一区二区三区片免费| 免费av成人在线| 亚洲激情偷拍| 亚洲国产精品成人久久综合一区| 亚洲精品孕妇| 欧美一区久久| 欧美电影免费观看高清| 国产精品久久久久77777| 国内精品久久久| 亚洲精品少妇网址| 香蕉久久久久久久av网站| 欧美成人伊人久久综合网| 99国产精品99久久久久久| 亚洲欧美久久久久一区二区三区| 久久精品视频va| 欧美日韩综合不卡| 在线观看成人一级片| 亚洲性感激情| 欧美α欧美αv大片| 中文国产成人精品久久一| 久久青草欧美一区二区三区| 国产精品成人免费| 亚洲精品一区在线观看| 久久久精彩视频| 亚洲精选一区| 欧美ab在线视频| 国产自产在线视频一区| 亚洲午夜伦理| 亚洲国产精品免费| 欧美在线一二三区| 欧美日韩一区在线观看视频| 在线观看亚洲视频啊啊啊啊| 亚洲一区精品在线| 亚洲欧洲在线观看| 久久艳片www.17c.com| 国产日韩精品综合网站| 亚洲一区二区三区激情| 嫩草影视亚洲| 午夜影院日韩| 国产精品久久久久久久久久久久久 | 亚洲永久在线| 亚洲国产高清视频| 欧美一区二区在线看| 国产精品亚洲视频| 欧美日韩另类字幕中文| 美女精品网站| 国产有码在线一区二区视频| 亚洲综合色婷婷| 最新亚洲激情| 欧美国产日本| 一本色道**综合亚洲精品蜜桃冫| 欧美成人免费全部| 久久精品人人做人人综合| 裸体歌舞表演一区二区| 一区二区三区视频免费在线观看 | 久久性色av| 激情文学综合丁香| 久久精品久久综合| 欧美一区二区三区啪啪 | 一二三四社区欧美黄| 亚洲精品免费电影| 欧美日韩精品是欧美日韩精品| 亚洲黄网站黄| 亚洲精品国产精品乱码不99| 欧美日韩另类一区| 欧美在线看片| 久久国产免费| 伊甸园精品99久久久久久| 欧美大尺度在线观看| 你懂的视频一区二区| 一区二区三区精品视频| 在线一区亚洲| 狠狠色狠狠色综合日日91app| 亚洲成色999久久网站| 欧美大胆成人| 亚洲欧美999| 久久久噜噜噜久久中文字免| 99riav国产精品| 亚洲欧美日韩视频一区| 在线日本成人| 亚洲福利视频在线| 欧美日韩精选| 久久天堂成人| 欧美日韩三级视频| 欧美在线综合视频| 久久综合五月| 亚洲一级特黄| 久久免费精品日本久久中文字幕| 亚洲乱码国产乱码精品精天堂| 亚洲一区二区三区在线| 亚洲国产精品成人综合| 一区二区三区欧美成人| 在线精品国产欧美| 亚洲一品av免费观看| 亚洲国产裸拍裸体视频在线观看乱了中文| 亚洲国产精品一区二区三区| 国产精品亚洲а∨天堂免在线| 美女脱光内衣内裤视频久久影院 | 亚洲欧美中文日韩在线| 最新亚洲视频| 欧美亚洲一区二区在线观看| 在线综合亚洲| 欧美日韩国产美女| 久久免费99精品久久久久久| 欧美极品一区| 毛片基地黄久久久久久天堂| 国产精品青草综合久久久久99| 亚洲电影在线播放| 国产一区av在线| 亚洲视屏在线播放| 99精品欧美一区二区三区综合在线| 欧美一级电影久久| 亚洲欧美日本视频在线观看| 欧美精品一区二区久久婷婷| 美女尤物久久精品| 国产日韩欧美精品在线| 一区二区三区精品久久久| 亚洲人成小说网站色在线| 久久久久久久尹人综合网亚洲| 小黄鸭精品密入口导航| 欧美性大战久久久久| 亚洲卡通欧美制服中文| 亚洲精品久久嫩草网站秘色| 噜噜噜噜噜久久久久久91| 欧美在线影院| 国产精品一区视频| 亚洲综合国产| 亚洲免费在线| 国产精品日韩一区| 午夜精品一区二区三区四区| 午夜精品在线| 国产一区二区三区久久| 欧美在现视频| 久久噜噜噜精品国产亚洲综合| 国产午夜精品久久久| 欧美亚洲视频| 美女视频黄免费的久久| 亚洲美女精品成人在线视频| 欧美日韩精品一区| 亚洲永久免费精品| 久久深夜福利| 伊人狠狠色j香婷婷综合| 久久在线91| 亚洲精品日韩一| 亚洲欧美一区二区在线观看| 国产日韩在线不卡| 久久久综合精品| 亚洲国产日韩在线一区模特| 亚洲素人一区二区| 国产日韩久久| 蜜臀久久99精品久久久久久9 | 国产精品日本精品| 欧美在线观看日本一区| 欧美成人dvd在线视频| 夜夜嗨av色综合久久久综合网| 国产精品v日韩精品| 欧美一级大片在线免费观看| 欧美第一黄色网| 亚洲字幕一区二区| 影音先锋在线一区| 欧美日韩你懂的| 翔田千里一区二区| 亚洲国产欧美一区| 亚洲欧美综合精品久久成人| 亚洲第一毛片| 国产精品红桃| 久久久av毛片精品| 在线亚洲欧美视频| 欧美高清免费| 国产精品入口夜色视频大尺度 | 国模叶桐国产精品一区| 欧美激情第3页| 性做久久久久久久免费看| 亚洲电影在线播放| 久久久久9999亚洲精品| 99re8这里有精品热视频免费 | 一区二区三区在线高清| 欧美视频在线播放| 久久综合久久综合九色| 中文网丁香综合网| 欧美国产一区二区| 久久精品在线观看| 一本色道久久88综合亚洲精品ⅰ| 韩国福利一区| 国产精品成人一区二区三区夜夜夜 | 国产精品观看| 欧美国产免费| 久久久久久亚洲精品杨幂换脸| 亚洲视频精品|