27 #ifndef _CEGUIDirect3D11Renderer_h_
28 #define _CEGUIDirect3D11Renderer_h_
30 #include "../../CEGUIRenderer.h"
31 #include "../../CEGUISize.h"
32 #include "../../CEGUIVector.h"
35 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
36 # ifdef DIRECT3D11_GUIRENDERER_EXPORTS
37 # define D3D11_GUIRENDERER_API __declspec(dllexport)
39 # define D3D11_GUIRENDERER_API __declspec(dllimport)
42 # define D3D11_GUIRENDERER_API
46 # pragma warning(push)
47 # pragma warning(disable : 4251)
52 struct ID3D11DeviceContext;
54 struct ID3DX11EffectTechnique;
55 struct ID3D11InputLayout;
56 struct ID3DX11EffectShaderResourceVariable;
57 struct ID3DX11EffectMatrixVariable;
58 struct ID3D11ShaderResourceView;
77 class Direct3D11GeometryBuffer;
78 class Direct3D11Texture;
107 ID3D11DeviceContext* context);
124 static void destroySystem();
151 void bindTechniquePass(
const BlendMode mode);
153 void setCurrentTextureShaderResource(ID3D11ShaderResourceView* srv);
155 void setProjectionMatrix(D3DXMATRIX& matrix);
157 void setWorldMatrix(D3DXMATRIX& matrix);
163 void destroyAllGeometryBuffers();
166 void destroyAllTextureTargets();
170 void destroyTexture(
Texture& texture);
171 void destroyAllTextures();
172 void beginRendering();
174 void setDisplaySize(
const Size& sz);
175 const Size& getDisplaySize()
const;
176 const Vector2& getDisplayDPI()
const;
177 uint getMaxTextureSize()
const;
178 const String& getIdentifierString()
const;
188 Size getViewportSize();
235 #if defined(_MSC_VER)
236 # pragma warning(pop)
239 #endif // end of guard _CEGUIDirect3D11Renderer_h_