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_
Functor that can be used as comparator in a std::map with String keys. It's faster than using the def...
Definition: String.h:5579
RenderTarget * d_defaultTarget
The default RenderTarget.
Definition: RendererModules/Direct3D10/Renderer.h:191
ID3D10EffectTechnique * d_premultipliedClippedTechnique
Rendering technique that supplies scissor clipped BM_RTT_PREMULTIPLIED type rendering.
Definition: RendererModules/Direct3D10/Renderer.h:212
Vector2f d_displayDPI
What the renderer considers to be the current display DPI resolution.
Definition: RendererModules/Direct3D10/Renderer.h:189
static String d_rendererID
String holding the renderer identification text.
Definition: RendererModules/Direct3D10/Renderer.h:183
TextureTargetList d_textureTargets
Container used to track texture targets.
Definition: RendererModules/Direct3D10/Renderer.h:195
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: GeometryBuffer.h:42
Specialisation of RenderTarget interface that should be used as the base class for RenderTargets that...
Definition: TextureTarget.h:40
std::vector< Direct3D10GeometryBuffer * > GeometryBufferList
container type used to hold GeometryBuffers we create.
Definition: RendererModules/Direct3D10/Renderer.h:197
ID3D10Effect * d_effect
Effect (shader) used when rendering.
Definition: RendererModules/Direct3D10/Renderer.h:206
ID3D10Device * d_device
The D3D device we're using to render with.
Definition: RendererModules/Direct3D10/Renderer.h:185
std::vector< TextureTarget * > TextureTargetList
container type used to hold TextureTargets we create.
Definition: RendererModules/Direct3D10/Renderer.h:193
Texture implementation for the Direct3D10Renderer.
Definition: RendererModules/Direct3D10/Texture.h:49
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:52
ID3D10InputLayout * d_inputLayout
D3D10 input layout describing the vertex format we use.
Definition: RendererModules/Direct3D10/Renderer.h:216
Abstract class defining the basic required interface for Renderer objects.
Definition: Renderer.h:82
ID3D10EffectTechnique * d_premultipliedUnclippedTechnique
Rendering technique that supplies BM_RTT_PREMULTIPLIED type rendering.
Definition: RendererModules/Direct3D10/Renderer.h:214
ID3D10EffectShaderResourceVariable * d_boundTextureVariable
Variable to access current texture (actually shader resource view)
Definition: RendererModules/Direct3D10/Renderer.h:218
BlendMode
Enumerated type that contains the valid options that specify the type of blending that is to be perfo...
Definition: Renderer.h:61
ID3D10EffectMatrixVariable * d_projectionMatrixVariable
Variable to access projection matrix used in geometry transformation.
Definition: RendererModules/Direct3D10/Renderer.h:222
TextureMap d_textures
Container used to track textures.
Definition: RendererModules/Direct3D10/Renderer.h:204
std::map< String, Direct3D10Texture *, StringFastLessCompare CEGUI_MAP_ALLOC(String, Direct3D10Texture *)> TextureMap
container type used to hold Textures we create.
Definition: RendererModules/Direct3D10/Renderer.h:202
ID3D10EffectTechnique * d_normalUnclippedTechnique
Rendering technique that supplies BM_NORMAL type rendering.
Definition: RendererModules/Direct3D10/Renderer.h:210
Defines interface to some surface that can be rendered to. Concrete instances of objects that impleme...
Definition: RenderTarget.h:57
GeometryBufferList d_geometryBuffers
Container used to track geometry buffers.
Definition: RendererModules/Direct3D10/Renderer.h:199
Renderer implementation using Direct3D 10.
Definition: RendererModules/Direct3D10/Renderer.h:68
ID3D10EffectTechnique * d_normalClippedTechnique
Rendering technique that supplies scissor clipped BM_NORMAL type rendering.
Definition: RendererModules/Direct3D10/Renderer.h:208
Sizef d_displaySize
What the renderer considers to be the current display size.
Definition: RendererModules/Direct3D10/Renderer.h:187
ID3D10EffectMatrixVariable * d_worldMatrixVariable
Variable to access world matrix used in geometry transformation.
Definition: RendererModules/Direct3D10/Renderer.h:220
String class used within the GUI system.
Definition: String.h:62