27 #ifndef _CEGUIDirect3D11Texture_h_
28 #define _CEGUIDirect3D11Texture_h_
30 #include "../../CEGUITexture.h"
31 #include "CEGUIDirect3D11Renderer.h"
32 #include "../../CEGUISize.h"
33 #include "../../CEGUIVector.h"
37 struct ID3D11DeviceContext;
38 struct ID3D11Texture2D;
39 struct ID3D11ShaderResourceView;
55 void setDirect3DTexture(ID3D11Texture2D* tex);
64 ID3D11Texture2D* getDirect3DTexture()
const;
73 ID3D11ShaderResourceView* getDirect3DShaderResourceView()
const;
82 void setOriginalDataSize(
const Size& sz);
85 const Size& getSize()
const;
86 const Size& getOriginalDataSize()
const;
87 const Vector2& getTexelScaling()
const;
88 void loadFromFile(
const String& filename,
const String& resourceGroup);
89 void loadFromMemory(
const void* buffer,
const Size& buffer_size,
91 void saveToMemory(
void* buffer);
105 const String& resourceGroup);
114 void cleanupDirect3D11Texture();
116 void updateCachedScaleValues();
118 void updateTextureSize();
120 void initialiseShaderResourceView();
139 #endif // end of guard _CEGUIDirect3D11Texture_h_
Size d_size
Size of the texture.
Definition: CEGUIDirect3D11Texture.h:129
Class used as a two dimensional vector (aka a Point)
Definition: CEGUIVector.h:45
void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions...
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory.
Definition: CEGUITexture.h:58
Vector2 d_texelScaling
cached pixel to texel mapping scale values.
Definition: CEGUIDirect3D11Texture.h:133
IDevice11 & d_device
D3D device used to do the business.
Definition: CEGUIDirect3D11Texture.h:123
Texture & createTexture()
Create a 'null' Texture object.
Class that holds the size (width & height) of something.
Definition: CEGUISize.h:43
Size d_dataSize
original pixel of size data loaded into texture
Definition: CEGUIDirect3D11Texture.h:131
Definition: CEGUIDirect3D11Renderer.h:66
ID3D11Texture2D * d_texture
The D3D 10 texture we're wrapping.
Definition: CEGUIDirect3D11Texture.h:125
Abstract base class specifying the required interface for Texture objects.
Definition: CEGUITexture.h:50
ID3D11ShaderResourceView * d_resourceView
Shader resource view for the texture.
Definition: CEGUIDirect3D11Texture.h:127
Texture implementation for the Direct3D11Renderer.
Definition: CEGUIDirect3D11Texture.h:47
String class used within the GUI system.
Definition: CEGUIString.h:57