source: OGRE/trunk/ogrenew/RenderSystems/Direct3D7/include/OgreD3D7Prerequisites.h @ 657

Revision 657, 2.7 KB checked in by mattausch, 19 years ago (diff)

added ogre dependencies and patched ogre sources

Line 
1/*
2-----------------------------------------------------------------------------
3This source file is part of OGRE
4    (Object-oriented Graphics Rendering Engine)
5For the latest info, see http://www.ogre3d.org/
6
7Copyright (c) 2000-2005 The OGRE Team
8Also see acknowledgements in Readme.html
9
10This program is free software; you can redistribute it and/or modify it under
11the terms of the GNU Lesser General Public License as published by the Free Software
12Foundation; either version 2 of the License, or (at your option) any later
13version.
14
15This program is distributed in the hope that it will be useful, but WITHOUT
16ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
18
19You should have received a copy of the GNU Lesser General Public License along with
20this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21Place - Suite 330, Boston, MA 02111-1307, USA, or go to
22http://www.gnu.org/copyleft/lesser.txt.
23-----------------------------------------------------------------------------
24*/
25
26#ifndef _D3DPrerequisites_H__
27#define _D3DPrerequisites_H__
28
29#include "OgrePrerequisites.h"
30
31// Define versions for if DirectX is in use (Win32 only)
32#define DIRECT3D_VERSION  0x0700
33#define DIRECTINPUT_VERSION 0x0700
34#define DIRECTDRAW_VERSION 0x0700
35
36// Include D3D and DirectDraw stuff
37#define D3D_OVERLOADS
38#define NOMINMAX // required to stop windows.h screwing up std::min definition
39#include <ddraw.h>
40#include <d3d.h>
41#include <d3dx.h>
42#include <d3dxcore.h>
43#include "d3dutil.h"
44
45
46namespace Ogre {
47
48    template< typename _Interf >
49    inline void __safeRelease( _Interf **interf ) throw ()
50    {
51        if( *interf )
52        {
53            (*interf)->Release();
54            (*interf) = NULL;
55        }
56    }
57
58    // Predefine classes
59    class D3DDevice;
60    class D3DDeviceList;
61    class D3DRenderSystem;
62    class D3DTexture;
63    class D3DTextureManager;
64    class DDDriver;
65    class DDDriverList;
66    class DDVideoMode;
67    class DDVideoModeList;
68
69//-----------------------------------------------------------------------
70// Windows Settings
71//-----------------------------------------------------------------------
72#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
73#   if OGRE_DYNAMIC_LINKAGE == 0
74#       pragma warn( "No dynamic linkage" )
75#       define _OgreD3DExport
76#   else
77#       ifdef OGRED3DENGINEDLL_EXPORTS
78#           define _OgreD3DExport __declspec(dllexport)
79#       else
80#           define _OgreD3DExport __declspec(dllimport)
81#       endif
82#   endif
83#endif // OGRE_WIN32
84
85
86}
87
88
89#endif
Note: See TracBrowser for help on using the repository browser.