D3DDeviceInfoObject.inl
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1999 DXGuide. All Rights Reserved.
- // File: D3DDeviceInfoObject.inl
- // Inlines for CD3DDeviceInfoObject
- inline D3DDEVICEDESC7 const* CD3DDeviceInfoObject::GetD3DDeviceDesc(void) const
- {
- return m_pD3DDesc;
- }
- inline bool CD3DDeviceInfoObject::IsHardware(void) const
- {
- return (m_pD3DDesc->dwDevCaps & D3DDEVCAPS_HWRASTERIZATION) != 0;
- }
- inline bool CD3DDeviceInfoObject::IsUseZBuffer(void) const
- {
- return (GetD3DDeviceDesc()->dwDeviceZBufferBitDepth ? true : false);
- }
- inline bool CD3DDeviceInfoObject::IsUseTextures(void) const
- {
- return ((GetD3DDeviceDesc()->dpcTriCaps.dwTextureCaps & D3DPTEXTURECAPS_PERSPECTIVE) ? true : false);
- }
- inline DWORD CD3DDeviceInfoObject::GetZBufferBitDepth(void) const
- {
- return (GetD3DDeviceDesc()->dwDeviceZBufferBitDepth);
- }