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_