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

天行健 君子當自強而不息

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>
            99国产麻豆精品| 国产欧美一区二区在线观看| 亚洲人成网在线播放| 免费在线观看精品| 免费国产一区二区| 亚洲国产精品一区| 亚洲精品一区二区三区蜜桃久| 欧美黄色小视频| 亚洲高清久久久| 亚洲欧洲精品一区二区| 一区二区三区欧美激情| 午夜精品久久久久久久男人的天堂| 欧美在现视频| 亚洲精品欧美日韩专区| 国产精品人人做人人爽| 国产伪娘ts一区| 在线免费观看视频一区| 日韩亚洲欧美在线观看| 午夜免费在线观看精品视频| 美女免费视频一区| 日韩一二在线观看| 欧美一区二区久久久| 欧美v国产在线一区二区三区| 欧美日韩一区二区免费在线观看| 国产亚洲成精品久久| 日韩特黄影片| 久久久99爱| 99国产精品久久久久久久| 欧美一区二区三区免费观看视频| 欧美二区在线| 国产精品综合不卡av | 在线观看日韩www视频免费 | 香蕉av777xxx色综合一区| 快she精品国产999| 国产精品一二三| 亚洲国产天堂网精品网站| 亚洲一区高清| 亚洲国产精品va在线看黑人动漫 | 亚洲卡通欧美制服中文| 久久av老司机精品网站导航| 亚洲区欧美区| 美女视频黄 久久| 国内久久精品视频| 欧美一区二区精品| 一本色道久久88综合日韩精品| 玖玖精品视频| 国产在线精品成人一区二区三区| 亚洲一区制服诱惑| 亚洲精品免费一区二区三区| 美女主播精品视频一二三四| 国产一区二区三区免费不卡| 欧美一区二区在线观看| 一区二区欧美国产| 欧美日韩综合视频| 亚洲视频欧美在线| 亚洲美女电影在线| 欧美不卡在线| 亚洲人成在线观看一区二区| 免费人成网站在线观看欧美高清| 欧美一区二区三区四区夜夜大片 | 国产精品国产三级国产普通话99| 日韩亚洲成人av在线| 91久久午夜| 欧美激情1区2区3区| 一区在线电影| 久久国产天堂福利天堂| 亚洲午夜视频在线观看| 国产精品第一区| 亚洲免费在线看| 亚洲视频免费| 国产欧美日韩91| 久久久久久日产精品| 新片速递亚洲合集欧美合集| 国产一区二区三区在线观看精品 | 国产自产在线视频一区| 久久久国产精品亚洲一区 | 99国产精品视频免费观看一公开| 欧美日本不卡视频| 亚洲欧美999| 欧美在线一二三四区| 影音先锋亚洲精品| 亚洲国产视频直播| 国产精品久久久久毛片软件| 久久精品99国产精品日本| 久久久久久亚洲精品中文字幕 | 午夜精品久久久久久久蜜桃app | 久久久久久999| 亚洲欧洲日韩综合二区| 99re8这里有精品热视频免费 | 亚洲永久视频| 亚洲成人在线视频播放| 亚洲精品自在久久| 国产午夜久久| 亚洲伦理在线免费看| 国产午夜精品久久久| 亚洲黄色高清| 国产亚洲欧洲| 99这里有精品| 亚洲丰满在线| 亚洲女ⅴideoshd黑人| 亚洲国产精品成人综合| 亚洲制服av| 亚洲伦理在线| 欧美在线亚洲综合一区| 欧美二区视频| 国产精品一级久久久| 亚洲高清视频中文字幕| 国产精品亚洲综合天堂夜夜| 亚洲丶国产丶欧美一区二区三区| 国产精品女主播| 亚洲国产欧洲综合997久久| 国产日韩欧美在线看| 日韩午夜电影av| 亚洲激情国产| 久久久久久久久岛国免费| 亚洲影院在线观看| 欧美精品色网| 欧美aa国产视频| 国产日产欧产精品推荐色| 99精品国产在热久久婷婷| 在线欧美电影| 久久精品国产亚洲一区二区三区| 亚洲自拍三区| 欧美日韩亚洲综合在线| 亚洲国产美女精品久久久久∴| 激情婷婷亚洲| 久久狠狠婷婷| 久久久久青草大香线综合精品| 国产精品视频久久| 亚洲尤物在线| 欧美在线视频a| 国产欧美一区二区三区国产幕精品| 这里只有精品视频| 亚洲影院免费| 国产麻豆综合| 香蕉尹人综合在线观看| 久久精品在线免费观看| 国产性天天综合网| 欧美在线亚洲综合一区| 久久综合伊人77777蜜臀| 精品福利电影| 欧美 日韩 国产在线| 亚洲国产高清一区二区三区| 亚洲精品看片| 国产精品草莓在线免费观看| 亚洲一级网站| 久久久亚洲影院你懂的| 亚洲国产日韩在线一区模特| 欧美黄色aaaa| 亚洲一区二区欧美| 久久久之久亚州精品露出| 亚洲国产精品视频| 欧美日韩成人综合天天影院| 中文av字幕一区| 久久久xxx| 亚洲人成网在线播放| 欧美调教视频| 欧美在线观看www| 欧美韩日一区二区| 亚洲香蕉成视频在线观看| 国产区日韩欧美| 免费视频一区二区三区在线观看| 亚洲欧洲精品一区二区精品久久久| 夜夜嗨av一区二区三区四区| 国产精品久久一卡二卡| 久久国产日本精品| 亚洲美女中文字幕| 久久婷婷麻豆| 亚洲视频国产视频| 精品成人在线视频| 国产精品theporn| 久久婷婷综合激情| 亚洲四色影视在线观看| 国产日韩在线不卡| 免费亚洲婷婷| 亚洲午夜黄色| 激情小说亚洲一区| 欧美视频一区二区在线观看| 久久er精品视频| 日韩亚洲欧美中文三级| 久久婷婷国产综合精品青草| 这里只有精品视频在线| 韩国av一区二区三区在线观看 | 欧美激情黄色片| 亚洲男人的天堂在线| 亚洲黄色av一区| 久久亚洲精品视频| 午夜久久资源| 99精品国产在热久久婷婷| 国产一区视频网站| 国产精品高潮呻吟久久| 麻豆av福利av久久av| 亚洲男人的天堂在线| 日韩西西人体444www| 欧美黄色免费网站| 美女主播一区| 麻豆国产精品777777在线| 午夜精品理论片| 亚洲影院在线观看| 亚洲无玛一区|