27 #ifndef _CEGUIDirect3D10Renderer_h_
28 #define _CEGUIDirect3D10Renderer_h_
30 #include "../../Renderer.h"
31 #include "../../Size.h"
32 #include "../../Vector.h"
36 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
37 # ifdef CEGUIDIRECT3D10RENDERER_EXPORTS
38 # define D3D10_GUIRENDERER_API __declspec(dllexport)
40 # define D3D10_GUIRENDERER_API __declspec(dllimport)
43 # define D3D10_GUIRENDERER_API
47 # pragma warning(push)
48 # pragma warning(disable : 4251)
54 struct ID3D10EffectTechnique;
55 struct ID3D10InputLayout;
56 struct ID3D10EffectShaderResourceVariable;
57 struct ID3D10EffectMatrixVariable;
58 struct ID3D10ShaderResourceView;
64 class Direct3D10GeometryBuffer;
65 class Direct3D10Texture;
92 const int abi = CEGUI_VERSION_ABI);
109 static void destroySystem();
116 const int abi = CEGUI_VERSION_ABI);
128 ID3D10Device& getDirect3DDevice()
const;
131 void bindTechniquePass(
const BlendMode mode,
const bool clipped);
133 void setCurrentTextureShaderResource(ID3D10ShaderResourceView* srv);
135 void setProjectionMatrix(D3DXMATRIX& matrix);
137 void setWorldMatrix(D3DXMATRIX& matrix);
143 void destroyAllGeometryBuffers();
146 void destroyAllTextureTargets();
150 const String& resourceGroup);
152 void destroyTexture(
Texture& texture);
153 void destroyTexture(
const String& name);
154 void destroyAllTextures();
156 bool isTextureDefined(
const String& name)
const;
157 void beginRendering();
159 void setDisplaySize(
const Sizef& sz);
160 const Sizef& getDisplaySize()
const;
161 const Vector2f& getDisplayDPI()
const;
162 uint getMaxTextureSize()
const;
163 const String& getIdentifierString()
const;
173 Sizef getViewportSize();
176 void throwIfNameExists(
const String& name)
const;
178 static void logTextureCreation(
const String& name);
180 static void logTextureDestruction(
const String& name);
228 #if defined(_MSC_VER)
229 # pragma warning(pop)
232 #endif // end of guard _CEGUIDirect3D10Renderer_h_