00001 /* 00002 ----------------------------------------------------------------------------- 00003 This source file is part of OGRE 00004 (Object-oriented Graphics Rendering Engine) 00005 For the latest info, see http://ogre.sourceforge.net/ 00006 00007 Copyright © 2000-2002 The OGRE Team 00008 Also see acknowledgements in Readme.html 00009 00010 This program is free software; you can redistribute it and/or modify it under 00011 the terms of the GNU Lesser General Public License as published by the Free Software 00012 Foundation; either version 2 of the License, or (at your option) any later 00013 version. 00014 00015 This program is distributed in the hope that it will be useful, but WITHOUT 00016 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00017 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public License along with 00020 this program; if not, write to the Free Software Foundation, Inc., 59 Temple 00021 Place - Suite 330, Boston, MA 02111-1307, USA, or go to 00022 http://www.gnu.org/copyleft/lesser.txt. 00023 ----------------------------------------------------------------------------- 00024 */ 00025 00026 #ifndef _D3DPrerequisites_H__ 00027 #define _D3DPrerequisites_H__ 00028 00029 #include "OgrePrerequisites.h" 00030 00031 #include "Unknwn.h" 00032 00033 // Define versions for if DirectX is in use (Win32 only) 00034 #define DIRECT3D_VERSION 0x0700 00035 #define DIRECTINPUT_VERSION 0x0700 00036 #define DIRECTDRAW_VERSION 0x0700 00037 00038 namespace Ogre { 00039 00040 template< typename _Interf > 00041 inline void __safeRelease( _Interf **interf ) throw () 00042 { 00043 if( *interf ) 00044 { 00045 (*interf)->Release(); 00046 (*interf) = NULL; 00047 } 00048 } 00049 00050 // Predefine classes 00051 class D3DDevice; 00052 class D3DDeviceList; 00053 class D3DRenderSystem; 00054 class D3DTexture; 00055 class D3DTextureManager; 00056 class DDDriver; 00057 class DDDriverList; 00058 class DDVideoMode; 00059 class DDVideoModeList; 00060 00061 //----------------------------------------------------------------------- 00062 // Windows Settings 00063 //----------------------------------------------------------------------- 00064 #if OGRE_PLATFORM == PLATFORM_WIN32 00065 # if OGRE_DYNAMIC_LINKAGE == 0 00066 # pragma warn( "No dynamic linkage" ) 00067 # define _OgreD3DExport 00068 # else 00069 # ifdef OGRED3DENGINEDLL_EXPORTS 00070 # define _OgreD3DExport __declspec(dllexport) 00071 # else 00072 # define _OgreD3DExport __declspec(dllimport) 00073 # endif 00074 # endif 00075 #endif // OGRE_WIN32 00076 00077 00078 } 00079 00080 00081 #endif
Copyright © 2002 by The OGRE Team