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_
Sizef d_dataSize
original pixel of size data loaded into texture
Definition: RendererModules/Direct3D10/Texture.h:140
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory.
Definition: Texture.h:61
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Texture & createTexture(const String &name)
Create a 'null' Texture object.
void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions...
ID3D10Texture2D * d_texture
The D3D 10 texture we're wrapping.
Definition: RendererModules/Direct3D10/Texture.h:134
ID3D10Device & d_device
D3D device used to do the business.
Definition: RendererModules/Direct3D10/Texture.h:132
const String d_name
The name used when the texture was created.
Definition: RendererModules/Direct3D10/Texture.h:144
Texture implementation for the Direct3D10Renderer.
Definition: RendererModules/Direct3D10/Texture.h:49
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:52
Sizef d_size
Size of the texture.
Definition: RendererModules/Direct3D10/Texture.h:138
ID3D10ShaderResourceView * d_resourceView
Shader resource view for the texture.
Definition: RendererModules/Direct3D10/Texture.h:136
Vector2f d_texelScaling
cached pixel to texel mapping scale values.
Definition: RendererModules/Direct3D10/Texture.h:142
String class used within the GUI system.
Definition: String.h:62