28 #ifndef __D3D11PREREQUISITES_H__
29 #define __D3D11PREREQUISITES_H__
35 #define DIRECT3D_VERSION 0x0900
38 #define SAFE_DELETE(p) { if(p) { delete (p); (p)=NULL; } }
39 #define SAFE_DELETE_ARRAY(p) { if(p) { delete[] (p); (p)=NULL; } }
40 #define SAFE_RELEASE(p) { if(p) { (p)->Release(); (p)=NULL; } }
44 #define NOMINMAX // required to stop windows.h screwing up std::min definition
47 #include <d3d11shader.h>
48 #include <D3Dcompiler.h>
54 class D3D11RenderSystem;
55 class D3D11RenderWindow;
57 class D3D11TextureManager;
59 class D3D11DriverList;
61 class D3D11VideoModeList;
62 class D3D11GpuProgram;
63 class D3D11GpuProgramManager;
64 class D3D11HardwareBufferManager;
65 class D3D11HardwareIndexBuffer;
66 class D3D11HLSLProgramFactory;
67 class D3D11HLSLProgram;
68 class D3D11VertexDeclaration;
70 class D3D11HardwareBuffer;
71 class D3D11HardwarePixelBuffer;
76 #define OGRE_D3D_MANAGE_BUFFERS 1
81 #if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32) && !defined(OGRE_STATIC_LIB)
82 # ifdef OGRED3DENGINEDLL_EXPORTS
83 # define _OgreD3D11Export __declspec(dllexport)
85 # if defined( __MINGW32__ )
86 # define _OgreD3D11Export
88 # define _OgreD3D11Export __declspec(dllimport)
92 # define _OgreD3D11Export