DirectX框架解析9(管理窗口的DXUT函数 和 管理设备的DXUT函数)
来源:互联网 发布:淘宝怎么看上次登录 编辑:程序博客网 时间:2024/05/04 14:38
管理窗口的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.
- DirectX框架解析9(管理窗口的DXUT函数 和 管理设备的DXUT函数)
- DirectX框架解析10 (管理DXUT框架的函数 和 管理DXUT框架的函数)
- DirectX框架解析11(DXUT统计函数 DXUT时间函数 DXUT计时器函数)
- DirectX框架解析12(DXUT暂停函数 DXUT用户输入函数 )
- DXUT框架剖析(9)
- DXUT框架剖析(9)
- DXUT框架
- DXUT.H / DXUT.CPP 解析
- DXUT 框架函数介绍 学习开发游戏UI
- DXUT框架剖析(1)
- DXUT框架剖析(2)
- DXUT框架剖析(3)
- DXUT框架剖析(4)
- DXUT框架剖析(5)
- DXUT框架剖析(6)
- DXUT框架剖析(7)
- DXUT框架剖析(8)
- DXUT框架剖析(10)
- Ebutton:非同寻常的健康减肥“纽扣”
- mysql忘记root用户密码---对策
- UML用例图概要
- android.content.res.Resources$NotFoundException解决方案
- &&判断条件在插入排序中的应用
- DirectX框架解析9(管理窗口的DXUT函数 和 管理设备的DXUT函数)
- .NET通过Global.asax和Timer定时器 定时调用WebService 运行后台代码
- 从纳什均衡看旁观者效应
- Java Socket多线程服务端、客户端
- DirectX框架解析10 (管理DXUT框架的函数 和 管理DXUT框架的函数)
- VS开发Windows应用程序建错工程后的几种解决方案
- 理解变量字符的截取功能
- 12款精美的免费 HTML 网站模板下载
- ie6 不支持 z-index:0 (z-index 为 0)