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

天行健 君子當自強而不息

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 閱讀(1151) 評論(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>
            国内激情久久| 久久久久国产精品一区三寸| 欧美一级专区| 亚洲影视在线播放| 亚洲一区二区少妇| 欧美中在线观看| 蜜桃av综合| 亚洲福利av| 亚洲国产天堂久久综合网| 亚洲精品国精品久久99热| 亚洲天堂黄色| 欧美在线影院| 欧美成人精品在线| 国产精品久久久久久久午夜片| 国产日产亚洲精品| 亚洲精品久久久久久一区二区 | 一本一本久久a久久精品牛牛影视| 99精品欧美一区| 亚洲人成网在线播放| 亚洲美女视频在线观看| 亚洲自拍三区| 免费一级欧美在线大片| 国产精品美女xx| 亚洲国产婷婷香蕉久久久久久99| 亚洲午夜精品视频| 麻豆av一区二区三区久久| 亚洲伦理在线免费看| 久久狠狠久久综合桃花| 欧美日韩国内| 一区二区视频免费完整版观看| 一区二区三区精品视频| 另类av一区二区| 亚洲综合99| 欧美日韩精品在线观看| 亚洲成人自拍视频| 校园春色综合网| 亚洲激情图片小说视频| 久久精彩免费视频| 国产精品一二三视频| 99成人在线| 欧美国产日韩免费| 久久精品国产91精品亚洲| 国产精品久久久久久户外露出| 91久久久久久国产精品| 久久婷婷av| 欧美一区二区性| 国产伦精品一区二区| 亚洲午夜黄色| 亚洲免费电影在线观看| 欧美激情 亚洲a∨综合| 亚洲国产精品成人精品| 美女精品在线观看| 久久精品理论片| 国内外成人免费激情在线视频网站 | 亚洲电影在线| 久久尤物视频| 亚洲承认在线| 欧美电影专区| 免费精品视频| 亚洲精品久久久久久久久| 欧美激情精品久久久久| 可以免费看不卡的av网站| 在线观看欧美激情| 欧美黑人国产人伦爽爽爽| 久色婷婷小香蕉久久| 亚洲国语精品自产拍在线观看| 欧美成人中文字幕| 欧美二区视频| 一区二区毛片| 在线亚洲自拍| 国产喷白浆一区二区三区| 久久九九精品99国产精品| 久久精品国产免费| 欧美激情乱人伦| 亚洲精品久久嫩草网站秘色 | 欧美 亚欧 日韩视频在线| 亚洲国产精品电影| 亚洲茄子视频| 国产精品久久久久久久app| 性久久久久久久久| 久久精精品视频| 亚洲精品无人区| 在线亚洲免费视频| 激情另类综合| 亚洲欧洲日本mm| 国产精品亚洲视频| 母乳一区在线观看| 欧美性大战xxxxx久久久| 久久精品夜色噜噜亚洲a∨| 麻豆成人小视频| 亚洲影院免费| 久久色中文字幕| 亚洲午夜成aⅴ人片| 久久国产日韩| 亚洲综合国产激情另类一区| 欧美一区二区三区免费在线看| 在线观看日韩| 在线视频精品一区| 在线成人av网站| 亚洲小少妇裸体bbw| 亚洲国产欧美一区二区三区久久 | 在线观看成人av电影| 亚洲三级观看| 激情五月综合色婷婷一区二区| 亚洲欧洲在线看| 韩国女主播一区二区三区| 日韩亚洲精品在线| 亚洲成色最大综合在线| 亚洲午夜伦理| 亚洲毛片在线| 开元免费观看欧美电视剧网站| 亚洲欧美日韩视频二区| 欧美成人资源| 免费国产自线拍一欧美视频| 国产欧美日韩亚洲一区二区三区 | 久久大香伊蕉在人线观看热2| 亚洲毛片一区二区| 久久香蕉国产线看观看网| 欧美一区二区日韩一区二区| 欧美顶级艳妇交换群宴| 免费在线国产精品| 国产一区二区三区在线观看免费视频 | 欧美a级片一区| 国产欧美日韩亚洲| 中文在线不卡| 夜夜嗨av一区二区三区网页| 国产一区二区无遮挡| 激情视频一区二区| 9l视频自拍蝌蚪9l视频成人 | 一区二区黄色| 蜜臀av国产精品久久久久| 久久久久久久久久久久久9999| 欧美系列亚洲系列| 一区二区动漫| 亚洲一本视频| 欧美色另类天堂2015| 亚洲六月丁香色婷婷综合久久| 亚洲国产99精品国自产| 久久久精品动漫| 久久久久久亚洲精品不卡4k岛国| 国产欧美日韩精品专区| 性欧美大战久久久久久久免费观看| 小黄鸭精品aⅴ导航网站入口| 国产精品视频yy9099| 亚洲欧美中文另类| 久久久久免费视频| 在线观看福利一区| 麻豆精品视频| 亚洲欧洲综合另类在线| 亚洲精品欧美在线| 欧美日韩国产成人在线观看| 夜久久久久久| 欧美诱惑福利视频| 一区二区三区在线视频观看| 你懂的网址国产 欧美| 日韩视频不卡| 久久黄金**| 亚洲国产成人精品久久| 欧美国产日韩a欧美在线观看| a4yy欧美一区二区三区| 欧美一区二区三区四区在线观看| 国产一区二区成人| 牛牛国产精品| 亚洲一区二区三区精品在线观看| 久久国产精品色婷婷| 亚洲第一视频| 国产精品久久久久久久app| 久久久精品久久久久| 亚洲乱码视频| 久久九九热re6这里有精品| 黄色日韩在线| 欧美日韩一区综合| 久久国产欧美日韩精品| 亚洲人成在线免费观看| 久久精品一二三区| 一区二区高清| 狠狠88综合久久久久综合网| 欧美精品久久久久久| 欧美一区二区三区日韩| 日韩午夜在线观看视频| 麻豆91精品| 先锋影音一区二区三区| 亚洲精品看片| 狠狠操狠狠色综合网| 欧美色另类天堂2015| 美女999久久久精品视频| 亚洲伊人一本大道中文字幕| 亚洲国产精品美女| 噜噜噜在线观看免费视频日韩| 亚洲午夜女主播在线直播| 亚洲福利在线视频| 国产一区二区三区自拍| 国产精品久久久久影院色老大| 欧美xxx在线观看| 久久精品国产69国产精品亚洲| 国产精品99久久久久久宅男| 亚洲激情一区二区| 欧美激情在线播放| 欧美日韩一区二区三区四区五区| 亚洲日本久久|