28 #ifndef _CEGUIDirect3D10Renderer_h_
29 #define _CEGUIDirect3D10Renderer_h_
31 #include "../../CEGUIRenderer.h"
32 #include "../../CEGUISize.h"
33 #include "../../CEGUIVector.h"
36 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
37 # ifdef DIRECT3D10_GUIRENDERER_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;
87 ID3D10Device& getDirect3DDevice()
const;
90 void bindTechniquePass();
92 void setCurrentTextureShaderResource(ID3D10ShaderResourceView* srv);
94 void setProjectionMatrix(D3DXMATRIX& matrix);
96 void setWorldMatrix(D3DXMATRIX& matrix);
102 void destroyAllGeometryBuffers();
105 void destroyAllTextureTargets();
109 void destroyTexture(
Texture& texture);
110 void destroyAllTextures();
111 void beginRendering();
113 void setDisplaySize(
const Size& sz);
114 const Size& getDisplaySize()
const;
115 const Vector2& getDisplayDPI()
const;
116 uint getMaxTextureSize()
const;
117 const String& getIdentifierString()
const;
127 Size getViewportSize();
170 #if defined(_MSC_VER)
171 # pragma warning(pop)
174 #endif // end of guard _CEGUIDirect3D10Renderer_h_