27 #ifndef _CEGUIDirect3D10Texture_h_
28 #define _CEGUIDirect3D10Texture_h_
30 #include "../../Texture.h"
31 #include "CEGUI/RendererModules/Direct3D10/Renderer.h"
32 #include "../../Size.h"
33 #include "../../Vector.h"
36 # pragma warning(push)
37 # pragma warning(disable : 4251)
42 struct ID3D10Texture2D;
43 struct ID3D10ShaderResourceView;
57 void setDirect3DTexture(ID3D10Texture2D* tex);
66 ID3D10Texture2D* getDirect3DTexture()
const;
75 ID3D10ShaderResourceView* getDirect3DShaderResourceView()
const;
84 void setOriginalDataSize(
const Sizef& sz);
87 const String& getName()
const;
88 const Sizef& getSize()
const;
89 const Sizef& getOriginalDataSize()
const;
90 const Vector2f& getTexelScaling()
const;
91 void loadFromFile(
const String& filename,
const String& resourceGroup);
92 void loadFromMemory(
const void* buffer,
const Sizef& buffer_size,
94 void blitFromMemory(
const void* sourceData,
const Rectf& area);
95 void blitToMemory(
void* targetData);
96 bool isPixelFormatSupported(
const PixelFormat fmt)
const;
123 void cleanupDirect3D10Texture();
125 void updateCachedScaleValues();
127 void updateTextureSize();
129 void initialiseShaderResourceView();
150 #if defined(_MSC_VER)
151 # pragma warning(pop)
154 #endif // end of guard _CEGUIDirect3D10Texture_h_