Crazy Eddie's GUI System
0.8.7
|
26 #ifndef _CEGUIDirect3D11Renderer_h_
27 #define _CEGUIDirect3D11Renderer_h_
29 #include "../../Renderer.h"
30 #include "../../Size.h"
31 #include "../../Vector.h"
35 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
36 # ifdef CEGUIDIRECT3D11RENDERER_EXPORTS
37 # define D3D11_GUIRENDERER_API __declspec(dllexport)
39 # define D3D11_GUIRENDERER_API __declspec(dllimport)
42 # define D3D11_GUIRENDERER_API
46 # pragma warning(push)
47 # pragma warning(disable : 4251)
52 struct ID3D11DeviceContext;
54 struct ID3DX11EffectTechnique;
55 struct ID3D11InputLayout;
56 struct ID3DX11EffectShaderResourceVariable;
57 struct ID3DX11EffectMatrixVariable;
58 struct ID3D11ShaderResourceView;
77 class Direct3D11GeometryBuffer;
78 class Direct3D11Texture;
110 ID3D11DeviceContext* context,
111 const int abi = CEGUI_VERSION_ABI);
128 static void destroySystem();
135 const int abi = CEGUI_VERSION_ABI);
170 bool isTexCoordSystemFlipped()
const {
return false; }
173 void bindTechniquePass(
const BlendMode mode,
const bool clipped);
175 void setCurrentTextureShaderResource(ID3D11ShaderResourceView* srv);
177 void setProjectionMatrix(D3DXMATRIX& matrix);
179 void setWorldMatrix(D3DXMATRIX& matrix);
185 void destroyAllGeometryBuffers();
188 void destroyAllTextureTargets();
192 const String& resourceGroup);
194 void destroyTexture(
Texture& texture);
195 void destroyTexture(
const String& name);
196 void destroyAllTextures();
198 bool isTextureDefined(
const String& name)
const;
199 void beginRendering();
201 void setDisplaySize(
const Sizef& sz);
202 const Sizef& getDisplaySize()
const;
203 const Vector2f& getDisplayDPI()
const;
204 uint getMaxTextureSize()
const;
205 const String& getIdentifierString()
const;
215 Sizef getViewportSize();
218 void throwIfNameExists(
const String& name)
const;
220 static void logTextureCreation(
const String& name);
222 static void logTextureDestruction(
const String& name);
225 static String d_rendererID;
250 ID3DX11Effect* d_effect;
252 ID3DX11EffectTechnique* d_normalClippedTechnique;
254 ID3DX11EffectTechnique* d_normalUnclippedTechnique;
256 ID3DX11EffectTechnique* d_premultipliedClippedTechnique;
258 ID3DX11EffectTechnique* d_premultipliedUnclippedTechnique;
260 ID3D11InputLayout* d_inputLayout;
262 ID3DX11EffectShaderResourceVariable* d_boundTextureVariable;
264 ID3DX11EffectMatrixVariable* d_worldMatrixVariable;
266 ID3DX11EffectMatrixVariable* d_projectionMatrixVariable;
272 #if defined(_MSC_VER)
273 # pragma warning(pop)
276 #endif // end of guard _CEGUIDirect3D11Renderer_h_
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: GeometryBuffer.h:62
Definition: RendererModules/Direct3D11/Renderer.h:64
Functor that can be used as comparator in a std::map with String keys. It's faster than using the def...
Definition: String.h:5600
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
std::map< String, Direct3D11Texture *, StringFastLessCompare CEGUI_MAP_ALLOC(String, Direct3D11Texture *)> TextureMap
container type used to hold Textures we create.
Definition: RendererModules/Direct3D11/Renderer.h:244
ID3D11DeviceContext * d_context
The D3D device context we're using to render.
Definition: RendererModules/Direct3D11/Renderer.h:69
ID3D11Device * d_device
The D3D device context we're using to create various resources with.
Definition: RendererModules/Direct3D11/Renderer.h:67
std::vector< Direct3D11GeometryBuffer * > GeometryBufferList
container type used to hold GeometryBuffers we create.
Definition: RendererModules/Direct3D11/Renderer.h:239
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:75
Renderer implementation using Direct3D 10.
Definition: RendererModules/Direct3D11/Renderer.h:80
BlendMode
Enumerated type that contains the valid options that specify the type of blending that is to be perfo...
Definition: Renderer.h:83
Defines interface to some surface that can be rendered to. Concrete instances of objects that impleme...
Definition: RenderTarget.h:77
Specialisation of RenderTarget interface that should be used as the base class for RenderTargets that...
Definition: TextureTarget.h:60
String class used within the GUI system.
Definition: String.h:83
Texture implementation for the Direct3D11Renderer.
Definition: RendererModules/Direct3D11/Texture.h:47
Abstract class defining the basic required interface for Renderer objects.
Definition: Renderer.h:104
std::vector< TextureTarget * > TextureTargetList
container type used to hold TextureTargets we create.
Definition: RendererModules/Direct3D11/Renderer.h:235