00001 /* 00002 Disclaimer 00003 */ 00004 00005 00006 #ifndef __D3D8PREREQUISITES_H__ 00007 #define __D3D8PREREQUISITES_H__ 00008 00009 #include "OgrePrerequisites.h" 00010 00011 // Define versions for if DirectX is in use (Win32 only) 00012 #define DIRECT3D_VERSION 0x0810 00013 #define DIRECTINPUT_VERSION 0x0800 00014 00015 namespace Ogre { 00016 00017 template< typename _Interf > 00018 inline void __safeRelease( _Interf **interf ) throw () 00019 { 00020 if( *interf ) 00021 { 00022 (*interf)->Release(); 00023 (*interf) = NULL; 00024 } 00025 } 00026 00027 #define __d3dExcept( hr, func ) Except( Exception::ERR_RENDERINGAPI_ERROR, DXGetErrorDescription8( hr ), func ); 00028 00029 // Predefine classes 00030 class D3D8Device; 00031 class D3D8DeviceList; 00032 class D3D8RenderSystem; 00033 class D3D8Texture; 00034 class D3D8TextureManager; 00035 class D3D8Driver; 00036 class D3D8DriverList; 00037 class D3D8VideoMode; 00038 class D3D8VideoModeList; 00039 00040 //------------------------------------------- 00041 // Windows setttings 00042 //------------------------------------------- 00043 #if OGRE_PLATFORM == PLATFORM_WIN32 00044 # if OGRE_DYNAMIC_LINKAGE == 0 00045 # pragma warn( "No dynamic linkage" ) 00046 # define _OgreD3D8Export 00047 # else 00048 # ifdef OGRED3D8ENGINEDLL_EXPORTS 00049 # define _OgreD3D8Export __declspec(dllexport) 00050 # else 00051 # define _OgreD3D8Export __declspec(dllimport) 00052 # endif 00053 # endif 00054 00055 #endif // OGRE_WIN32 00056 00057 } 00058 00059 #endif
Copyright © 2002 by The OGRE Team