27 #ifndef _CEGUIDirect3D11Renderer_h_
28 #define _CEGUIDirect3D11Renderer_h_
30 #include "../../Renderer.h"
31 #include "../../Size.h"
32 #include "../../Vector.h"
36 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
37 # ifdef CEGUIDIRECT3D11RENDERER_EXPORTS
38 # define D3D11_GUIRENDERER_API __declspec(dllexport)
40 # define D3D11_GUIRENDERER_API __declspec(dllimport)
43 # define D3D11_GUIRENDERER_API
47 # pragma warning(push)
48 # pragma warning(disable : 4251)
53 struct ID3D11DeviceContext;
55 struct ID3DX11EffectTechnique;
56 struct ID3D11InputLayout;
57 struct ID3DX11EffectShaderResourceVariable;
58 struct ID3DX11EffectMatrixVariable;
59 struct ID3D11ShaderResourceView;
78 class Direct3D11GeometryBuffer;
79 class Direct3D11Texture;
111 ID3D11DeviceContext* context,
112 const int abi = CEGUI_VERSION_ABI);
129 static void destroySystem();
136 const int abi = CEGUI_VERSION_ABI);
157 void bindTechniquePass(
const BlendMode mode,
const bool clipped);
159 void setCurrentTextureShaderResource(ID3D11ShaderResourceView* srv);
161 void setProjectionMatrix(D3DXMATRIX& matrix);
163 void setWorldMatrix(D3DXMATRIX& matrix);
169 void destroyAllGeometryBuffers();
172 void destroyAllTextureTargets();
176 const String& resourceGroup);
178 void destroyTexture(
Texture& texture);
179 void destroyTexture(
const String& name);
180 void destroyAllTextures();
182 bool isTextureDefined(
const String& name)
const;
183 void beginRendering();
185 void setDisplaySize(
const Sizef& sz);
186 const Sizef& getDisplaySize()
const;
187 const Vector2f& getDisplayDPI()
const;
188 uint getMaxTextureSize()
const;
189 const String& getIdentifierString()
const;
199 Sizef getViewportSize();
202 void throwIfNameExists(
const String& name)
const;
204 static void logTextureCreation(
const String& name);
206 static void logTextureDestruction(
const String& name);
256 #if defined(_MSC_VER)
257 # pragma warning(pop)
260 #endif // end of guard _CEGUIDirect3D11Renderer_h_