28 #ifndef _CEGUIDirect3D9Texture_h_
29 #define _CEGUIDirect3D9Texture_h_
31 #include "../../Base.h"
32 #include "../../Renderer.h"
33 #include "../../Texture.h"
34 #include "CEGUI/RendererModules/Direct3D9/Renderer.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4251)
53 void setDirect3D9Texture(LPDIRECT3DTEXTURE9 tex);
62 LPDIRECT3DTEXTURE9 getDirect3D9Texture()
const;
71 void setOriginalDataSize(
const Sizef& sz);
80 const String& getName()
const;
81 const Sizef& getSize()
const;
82 const Sizef& getOriginalDataSize()
const;
83 const Vector2f& getTexelScaling()
const;
84 void loadFromFile(
const String& filename,
const String& resourceGroup);
85 void loadFromMemory(
const void* buffer,
const Sizef& buffer_size,
87 void blitFromMemory(
const void* sourceData,
const Rectf& area);
88 void blitToMemory(
void* targetData);
89 bool isPixelFormatSupported(
const PixelFormat fmt)
const;
100 LPDIRECT3DTEXTURE9 tex);
114 LPDIRECT3DTEXTURE9 tex);
119 void createDirect3D9Texture(
const Sizef sz, D3DFORMAT format);
121 void cleanupDirect3D9Texture();
123 IDirect3DSurface9* getTextureSurface()
const;
125 void updateCachedScaleValues();
127 void updateTextureSize();
149 #if defined(_MSC_VER)
150 # pragma warning(pop)
153 #endif // end of guard _CEGUIDirect3D9Texture_h_