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_
Class used as a two dimensional vector (aka a Point)
Definition: CEGUIVector.h:45
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory.
Definition: CEGUITexture.h:58
void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions...
Class that holds the size (width & height) of something.
Definition: CEGUISize.h:43
ID3D10Texture2D * d_texture
The D3D 10 texture we're wrapping.
Definition: CEGUIDirect3D10Texture.h:123
ID3D10Device & d_device
D3D device used to do the business.
Definition: CEGUIDirect3D10Texture.h:121
Texture implementation for the Direct3D10Renderer.
Definition: CEGUIDirect3D10Texture.h:45
Abstract base class specifying the required interface for Texture objects.
Definition: CEGUITexture.h:50
Vector2 d_texelScaling
cached pixel to texel mapping scale values.
Definition: CEGUIDirect3D10Texture.h:131
ID3D10ShaderResourceView * d_resourceView
Shader resource view for the texture.
Definition: CEGUIDirect3D10Texture.h:125
Size d_size
Size of the texture.
Definition: CEGUIDirect3D10Texture.h:127
Texture & createTexture()
Create a 'null' Texture object.
String class used within the GUI system.
Definition: CEGUIString.h:57
Size d_dataSize
original pixel of size data loaded into texture
Definition: CEGUIDirect3D10Texture.h:129