DirectXApp.inl
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1999 DXGuide. All Rights Reserved.
- // File: DirectXApp.inl
- // Inlines for CDirectXApp
- inline bool CDirectXApp::IsFullScreen(void) const
- {
- return ((m_dwDDInitFlags & CDDDevice::DDIF_WINDOWED) == 0);
- }
- inline void CDirectXApp::SetFullScreen(bool bFullScreen)
- {
- if (bFullScreen)
- m_dwDDInitFlags &= ~CDDDevice::DDIF_WINDOWED;
- else
- m_dwDDInitFlags |= CDDDevice::DDIF_WINDOWED;
- }
- inline CDDDevice* CDirectXApp::GetFirstDDDevice(void) const
- {
- return m_pDirectDraw->GetFirstEnableDevice();
- }
- inline CD3DDevice* CDirectXApp::GetFirstD3DDevice(void) const
- {
- if ((m_dwAppInitFlags & DXAPPIF_D3DIM) == 0)
- return NULL;
- return (CD3DDevice*)m_pDirectDraw->GetFirstEnableDevice();
- }