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

天行健 君子當自強而不息

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>
            国产在线欧美| 亚洲精品久久7777| 红桃视频亚洲| 国内精品视频666| 国产一级久久| 在线免费观看日韩欧美| 亚洲国产欧美一区二区三区丁香婷| 国产伪娘ts一区| 伊人久久大香线蕉av超碰演员| 一区二区亚洲精品| 亚洲精品午夜| 亚洲欧美国产制服动漫| 欧美怡红院视频一区二区三区| 欧美尤物一区| 欧美成人精品激情在线观看| 亚洲激情一区二区三区| 日韩午夜在线| 欧美中在线观看| 欧美电影资源| 国产精品一区二区三区免费观看| 国产亚洲成年网址在线观看| 亚洲福利在线视频| 一区二区三区视频在线播放| 欧美一区二区视频免费观看| 你懂的一区二区| 国产精品一区二区三区成人| 伊大人香蕉综合8在线视| 在线亚洲一区二区| 久久亚洲高清| 亚洲视屏在线播放| 欧美国产精品v| 国产一区二区三区日韩欧美| 一本色道久久精品| 欧美xart系列高清| 午夜一区二区三视频在线观看| 女同一区二区| 激情久久久久久久| 亚洲欧美精品伊人久久| 亚洲国产三级网| 久久久91精品国产一区二区精品| 欧美日韩免费一区| 亚洲肉体裸体xxxx137| 久久视频在线视频| 亚洲一二三区在线观看| 欧美韩日亚洲| 亚洲国产日韩一级| 美女黄色成人网| 欧美在线短视频| 国产精品有限公司| 亚洲一区免费看| 99精品久久久| 欧美精品免费在线| 最新69国产成人精品视频免费| 久久久久久久精| 先锋影音久久| 国产日韩欧美在线| 欧美中文字幕在线播放| 亚洲影院高清在线| 国产欧美精品| 久久久精彩视频| 欧美一区深夜视频| 激情校园亚洲| 另类尿喷潮videofree| 欧美在线视频播放| 影音先锋国产精品| 亚洲福利在线视频| 欧美日韩久久精品| 一本色道久久综合狠狠躁篇怎么玩| 欧美激情精品久久久久久久变态| 久久亚洲国产精品日日av夜夜| 国产综合色在线视频区| 久久夜色精品国产欧美乱极品| 欧美一区二区三区免费视频| 国产在线播精品第三| 麻豆视频一区二区| 欧美成年人网| 中文一区字幕| 香蕉成人伊视频在线观看| 国产欧美精品久久| 欧美插天视频在线播放| 欧美xart系列高清| 欧美视频一区在线观看| 亚洲欧美日韩视频一区| 亚洲欧美国产另类| 极品裸体白嫩激情啪啪国产精品| 另类图片国产| 欧美日韩国产精品一卡| 香蕉av福利精品导航| 久久精品日韩欧美| 日韩五码在线| 亚洲欧美电影院| 亚洲国产欧美精品| 一区二区日韩免费看| 国产中文一区二区三区| 亚洲国产日韩欧美在线动漫| 国产精品久久久久久久7电影| 久久久xxx| 欧美精品91| 久久久精品一品道一区| 欧美国产精品v| 久久久成人网| 欧美调教vk| 欧美阿v一级看视频| 国产精品国产三级国产a| 欧美xx69| 国产亚洲一本大道中文在线| 亚洲国产成人在线视频| 国产色综合网| 一区二区三区日韩欧美| 亚洲国产另类久久精品| 欧美一二三视频| 亚洲在线视频观看| 欧美激情综合色| 欧美成人精品1314www| 国产性色一区二区| 亚洲午夜激情网站| 日韩一级不卡| 久久久久九九视频| 欧美中文字幕| 国产精品视频网站| 亚洲欧洲在线播放| 亚洲第一区在线| 欧美一区二区在线| 性色av一区二区三区在线观看| 欧美日韩免费网站| 亚洲精品一区二区三区四区高清| 精品成人国产在线观看男人呻吟| 亚洲视频综合在线| 亚洲综合社区| 欧美午夜片在线观看| 亚洲日本欧美| 亚洲精品视频在线| 欧美高清免费| 亚洲黄色免费| 亚洲精品乱码久久久久久黑人| 久久久国产亚洲精品| 久久亚洲综合色| 亚洲福利小视频| 免费视频久久| 亚洲韩国一区二区三区| 亚洲精品视频啊美女在线直播| 免费观看成人| 亚洲国产清纯| 一区二区三区|亚洲午夜| 欧美另类在线观看| 亚洲日韩欧美视频一区| 亚洲精品视频在线观看网站| 欧美成人亚洲成人日韩成人| 亚洲精品一区在线| 欧美成人高清| 日韩天堂在线观看| 午夜精品久久久久久99热| 国产精品永久免费在线| 久久精品99国产精品日本| 欧美1区2区视频| 亚洲精品乱码久久久久久日本蜜臀| 欧美大秀在线观看| 一本综合精品| 久久九九国产精品怡红院| 激情综合五月天| 欧美精品日韩三级| 亚洲午夜小视频| 久久亚洲欧洲| 一本色道久久综合精品竹菊| 国产精品视频九色porn| 久久精品在线播放| 亚洲精品欧美日韩专区| 亚洲女女女同性video| 国产日产欧产精品推荐色| 久久免费的精品国产v∧| 亚洲毛片在线观看.| 久久久999精品视频| 亚洲日本成人女熟在线观看| 欧美午夜视频在线观看| 久久国产夜色精品鲁鲁99| 亚洲第一页中文字幕| 亚洲你懂的在线视频| 亚洲国产精品成人精品| 国产精品激情av在线播放| 久久久视频精品| 亚洲色图自拍| 亚洲高清资源综合久久精品| 性久久久久久| 99国产精品久久久久久久| 国产日韩欧美在线一区| 欧美日本一区二区视频在线观看| 香蕉成人啪国产精品视频综合网| 亚洲日本电影| 免费在线一区二区| 久久av一区| 亚洲欧美日韩国产| 亚洲美女啪啪| …久久精品99久久香蕉国产 | 欧美不卡视频一区| 亚洲欧美中日韩| 亚洲精品在线观| 亚洲国产精品成人| 国产一区二区三区成人欧美日韩在线观看| 欧美另类视频在线| 欧美精品 国产精品|