28 #ifndef _CEGUIDirect3D10Texture_h_
29 #define _CEGUIDirect3D10Texture_h_
31 #include "../../Texture.h"
32 #include "CEGUI/RendererModules/Direct3D10/Renderer.h"
33 #include "../../Size.h"
34 #include "../../Vector.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4251)
43 struct ID3D10Texture2D;
44 struct ID3D10ShaderResourceView;
58 void setDirect3DTexture(ID3D10Texture2D* tex);
67 ID3D10Texture2D* getDirect3DTexture()
const;
76 ID3D10ShaderResourceView* getDirect3DShaderResourceView()
const;
85 void setOriginalDataSize(
const Sizef& sz);
88 const String& getName()
const;
89 const Sizef& getSize()
const;
90 const Sizef& getOriginalDataSize()
const;
91 const Vector2f& getTexelScaling()
const;
92 void loadFromFile(
const String& filename,
const String& resourceGroup);
93 void loadFromMemory(
const void* buffer,
const Sizef& buffer_size,
95 void blitFromMemory(
const void* sourceData,
const Rectf& area);
96 void blitToMemory(
void* targetData);
97 bool isPixelFormatSupported(
const PixelFormat fmt)
const;
124 void cleanupDirect3D10Texture();
126 void updateCachedScaleValues();
128 void updateTextureSize();
130 void initialiseShaderResourceView();
151 #if defined(_MSC_VER)
152 # pragma warning(pop)
155 #endif // end of guard _CEGUIDirect3D10Texture_h_