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"
37# pragma warning(disable : 4251)
42struct ID3D10Texture2D;
43struct ID3D10ShaderResourceView;
100 friend Texture& Direct3D10Renderer::createTexture(
const String&);
101 friend Texture& Direct3D10Renderer::createTexture(
const String&,
104 friend Texture& Direct3D10Renderer::createTexture(
const String&,
107 friend void Direct3D10Renderer::destroyTexture(
Texture&);
108 friend void Direct3D10Renderer::destroyTexture(
const String&);
Texture implementation for the Direct3D10Renderer.
Definition RendererModules/Direct3D10/Texture.h:50
void setOriginalDataSize(const Sizef &sz)
Sets what the texture should consider as the original data size.
void blitFromMemory(const void *sourceData, const Rectf &area)
Performs an area memory blit to the texture.
Vector2f d_texelScaling
cached pixel to texel mapping scale values.
Definition RendererModules/Direct3D10/Texture.h:142
Sizef d_size
Size of the texture.
Definition RendererModules/Direct3D10/Texture.h:138
void setDirect3DTexture(ID3D10Texture2D *tex)
set the D3D10 texture that this Texture is based on to the specified texture.
ID3D10Device & d_device
D3D device used to do the business.
Definition RendererModules/Direct3D10/Texture.h:132
void updateTextureSize()
set d_size to actual texture size (d_dataSize is used if query fails)
ID3D10Texture2D * getDirect3DTexture() const
Return the internal D3D10 texture used by this Texture object.
const String & getName() const
Returns the name given to the texture when it was created.
void initialiseShaderResourceView()
creates shader resource view for the current D3D texture
ID3D10Texture2D * d_texture
The D3D 10 texture we're wrapping.
Definition RendererModules/Direct3D10/Texture.h:134
ID3D10ShaderResourceView * d_resourceView
Shader resource view for the texture.
Definition RendererModules/Direct3D10/Texture.h:136
Direct3D10Texture(ID3D10Device &device, const String &)
Basic constructor.
void loadFromMemory(const void *buffer, const Sizef &buffer_size, PixelFormat pixel_format)
Loads (copies) an image in memory into the texture. The texture is resized as required to hold the im...
bool isPixelFormatSupported(const PixelFormat fmt) const
Return whether the specified pixel format is supported by the system for the CEGUI::Texture implement...
Direct3D10Texture(ID3D10Device &device, const String &, const Sizef &sz)
Construct texture with a given size.
void updateCachedScaleValues()
updates cached scale value used to map pixels to texture co-ords.
Direct3D10Texture(ID3D10Device &device, const String &, const String &filename, const String &resourceGroup)
Construct texture from an image file.
void blitToMemory(void *targetData)
Performs a complete blit from the texture surface to memory.
void loadFromFile(const String &filename, const String &resourceGroup)
Loads the specified image file into the texture. The texture is resized as required to hold the image...
virtual ~Direct3D10Texture()
Destructor.
void cleanupDirect3D10Texture()
clean up the internal texture.
Sizef d_dataSize
original pixel of size data loaded into texture
Definition RendererModules/Direct3D10/Texture.h:140
ID3D10ShaderResourceView * getDirect3DShaderResourceView() const
Return the internal D3D10 shader resource view for the texture.
const Sizef & getSize() const
Returns the current pixel size of the texture.
Direct3D10Texture(ID3D10Device &device, const String &, ID3D10Texture2D *tex)
Construct texture that wraps an existing D3D10 texture.
const Sizef & getOriginalDataSize() const
Returns the original pixel size of the data loaded into the texture.
const String d_name
The name used when the texture was created.
Definition RendererModules/Direct3D10/Texture.h:144
const Vector2f & getTexelScaling() const
Returns pixel to texel scale values that should be used for converting pixel values to texture co-ord...
String class used within the GUI system.
Definition String.h:64
Abstract base class specifying the required interface for Texture objects.
Definition Texture.h:54
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory.
Definition Texture.h:62
Main namespace for Crazy Eddie's GUI Library.
Definition arch_overview.dox:1