28 #ifndef _CEGUIDirect3D10Texture_h_
29 #define _CEGUIDirect3D10Texture_h_
31 #include "../../CEGUITexture.h"
32 #include "CEGUIDirect3D10Renderer.h"
33 #include "../../CEGUISize.h"
34 #include "../../CEGUIVector.h"
38 struct ID3D10Texture2D;
39 struct ID3D10ShaderResourceView;
53 void setDirect3DTexture(ID3D10Texture2D* tex);
62 ID3D10Texture2D* getDirect3DTexture()
const;
71 ID3D10ShaderResourceView* getDirect3DShaderResourceView()
const;
80 void setOriginalDataSize(
const Size& sz);
83 const Size& getSize()
const;
84 const Size& getOriginalDataSize()
const;
85 const Vector2& getTexelScaling()
const;
86 void loadFromFile(
const String& filename,
const String& resourceGroup);
87 void loadFromMemory(
const void* buffer,
const Size& buffer_size,
89 void saveToMemory(
void* buffer);
103 const String& resourceGroup);
112 void cleanupDirect3D10Texture();
114 void updateCachedScaleValues();
116 void updateTextureSize();
118 void initialiseShaderResourceView();
137 #endif // end of guard _CEGUIDirect3D10Texture_h_