28 #ifndef __D3D10PREREQUISITES_H__
29 #define __D3D10PREREQUISITES_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; } }
43 #if !defined(NOMINMAX) && defined(_MSC_VER)
44 # define NOMINMAX // required to stop windows.h messing up std::min
50 #include <d3d10_1shader.h>
56 class D3D10RenderSystem;
57 class D3D10RenderWindow;
59 class D3D10TextureManager;
61 class D3D10DriverList;
63 class D3D10VideoModeList;
64 class D3D10GpuProgram;
65 class D3D10GpuProgramManager;
66 class D3D10HardwareBufferManager;
67 class D3D10HardwareIndexBuffer;
68 class D3D10HLSLProgramFactory;
69 class D3D10HLSLProgram;
70 class D3D10VertexDeclaration;
72 class D3D10HardwareBuffer;
73 class D3D10HardwarePixelBuffer;
78 #define OGRE_D3D_MANAGE_BUFFERS 1
83 #if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32) && !defined(OGRE_STATIC_LIB)
84 # ifdef OGRED3DENGINEDLL_EXPORTS
85 # define _OgreD3D10Export __declspec(dllexport)
87 # if defined( __MINGW32__ )
88 # define _OgreD3D10Export
90 # define _OgreD3D10Export __declspec(dllimport)
94 # define _OgreD3D10Export