28 #ifndef _CEGUIDirect3D10Renderer_h_
29 #define _CEGUIDirect3D10Renderer_h_
31 #include "../../Renderer.h"
32 #include "../../Size.h"
33 #include "../../Vector.h"
37 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
38 # ifdef CEGUIDIRECT3D10RENDERER_EXPORTS
39 # define D3D10_GUIRENDERER_API __declspec(dllexport)
41 # define D3D10_GUIRENDERER_API __declspec(dllimport)
44 # define D3D10_GUIRENDERER_API
48 # pragma warning(push)
49 # pragma warning(disable : 4251)
55 struct ID3D10EffectTechnique;
56 struct ID3D10InputLayout;
57 struct ID3D10EffectShaderResourceVariable;
58 struct ID3D10EffectMatrixVariable;
59 struct ID3D10ShaderResourceView;
65 class Direct3D10GeometryBuffer;
66 class Direct3D10Texture;
93 const int abi = CEGUI_VERSION_ABI);
110 static void destroySystem();
117 const int abi = CEGUI_VERSION_ABI);
129 ID3D10Device& getDirect3DDevice()
const;
132 void bindTechniquePass(
const BlendMode mode,
const bool clipped);
134 void setCurrentTextureShaderResource(ID3D10ShaderResourceView* srv);
136 void setProjectionMatrix(D3DXMATRIX& matrix);
138 void setWorldMatrix(D3DXMATRIX& matrix);
144 void destroyAllGeometryBuffers();
147 void destroyAllTextureTargets();
151 const String& resourceGroup);
153 void destroyTexture(
Texture& texture);
154 void destroyTexture(
const String& name);
155 void destroyAllTextures();
157 bool isTextureDefined(
const String& name)
const;
158 void beginRendering();
160 void setDisplaySize(
const Sizef& sz);
161 const Sizef& getDisplaySize()
const;
162 const Vector2f& getDisplayDPI()
const;
163 uint getMaxTextureSize()
const;
164 const String& getIdentifierString()
const;
174 Sizef getViewportSize();
177 void throwIfNameExists(
const String& name)
const;
179 static void logTextureCreation(
const String& name);
181 static void logTextureDestruction(
const String& name);
229 #if defined(_MSC_VER)
230 # pragma warning(pop)
233 #endif // end of guard _CEGUIDirect3D10Renderer_h_