CEGUI::DirectX10Texture Class Reference

Texture class that is created by DirectX10Renderer objects. More...

Inheritance diagram for CEGUI::DirectX10Texture:

Inheritance graph
[legend]
Collaboration diagram for CEGUI::DirectX10Texture:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ushort getWidth (void) const
 Returns the current pixel width of the texture.
virtual ushort getHeight (void) const
 Returns the current pixel height of the texture.
virtual ushort getOriginalWidth (void) const
 Returns the original pixel width of the data loaded into the texture.
virtual ushort getOriginalHeight (void) const
 Returns the original pixel height of the data loaded into the texture.
virtual 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 void loadFromMemory (const void *buffPtr, uint buffWidth, uint buffHeight, PixelFormat pixelFormat)
 Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image.
LPDIRECT3DTEXTURE2D getD3DTexture (void) const
 Return a pointer to the internal Direct3DTexture9 object.
ID3D10ShaderResourceView * getD3DResourceView (void) const
void setD3DTextureSize (uint size)
 set the size of the internal D3D texture. Previous D3D texture is lost.

Friends

TextureDirectX10Renderer::createTexture (void)
TextureDirectX10Renderer::createTexture (const String &filename, const String &resourceGroup)
TextureDirectX10Renderer::createTexture (float size)
void DirectX10Renderer::destroyTexture (Texture *texture)


Detailed Description

Texture class that is created by DirectX10Renderer objects.

Member Function Documentation

LPDIRECT3DTEXTURE2D CEGUI::DirectX10Texture::getD3DTexture ( void   )  const [inline]

Return a pointer to the internal Direct3DTexture9 object.

Returns:
Pointer to the IDirect3DTexture9 interface currently being used by this Texture object

virtual ushort CEGUI::DirectX10Texture::getHeight ( void   )  const [inline, virtual]

Returns the current pixel height of the texture.

Returns:
ushort value that is the current height of the texture in pixels

Implements CEGUI::Texture.

virtual ushort CEGUI::DirectX10Texture::getOriginalHeight ( void   )  const [inline, virtual]

Returns the original pixel height of the data loaded into the texture.

Returns:
ushort value that is the original height, in pixels, of the data last loaded into the texture.
Note:
for compatibility reason this method is optional the auto scale issue mantis ticket # 0000045 is not fixed for renderer that do not handle this.

Reimplemented from CEGUI::Texture.

virtual ushort CEGUI::DirectX10Texture::getOriginalWidth ( void   )  const [inline, virtual]

Returns the original pixel width of the data loaded into the texture.

Returns:
ushort value that is the original width, in pixels, of the data last loaded into the texture.
Note:
for compatibility reason this method is optional the auto scale issue mantis ticket # 0000045 is not fixed for renderer that do not handle this.

Reimplemented from CEGUI::Texture.

virtual ushort CEGUI::DirectX10Texture::getWidth ( void   )  const [inline, virtual]

Returns the current pixel width of the texture.

Returns:
ushort value that is the current width of the texture in pixels

Implements CEGUI::Texture.

void CEGUI::DirectX10Texture::loadFromFile ( const String filename,
const String resourceGroup 
) [virtual]

Loads the specified image file into the texture. The texture is resized as required to hold the image.

Parameters:
filename The filename of the image file that is to be loaded into the texture
resourceGroup Resource group identifier passed to the resource provider.
Returns:
Nothing.

Implements CEGUI::Texture.

References CEGUI::filenameHasTGAExtension(), CEGUI::RawDataContainer::getDataPtr(), CEGUI::Texture::getRenderer(), CEGUI::System::getResourceProvider(), CEGUI::System::getSingleton(), CEGUI::RawDataContainer::getSize(), and CEGUI::loadTextureFromTargaFile().

Referenced by CEGUI::DirectX10Renderer::createTexture().

void CEGUI::DirectX10Texture::loadFromMemory ( const void *  buffPtr,
uint  buffWidth,
uint  buffHeight,
Texture::PixelFormat  pixFormat 
) [virtual]

Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image.

Parameters:
buffPtr Pointer to the buffer containing the image data
buffWidth Width of the buffer (in pixels as specified by pixelFormat )
buffHeight Height of the buffer (in pixels as specified by pixelFormat )
pixelFormat PixelFormat value describing the format contained in buffPtr
Returns:
Nothing.

Implements CEGUI::Texture.

References CEGUI::Texture::getRenderer(), CEGUI::Texture::PF_RGB, and CEGUI::Texture::PF_RGBA.

Referenced by CEGUI::loadTextureFromTargaFile().

void CEGUI::DirectX10Texture::setD3DTextureSize ( uint  size  ) 

set the size of the internal D3D texture. Previous D3D texture is lost.

Parameters:
size pixel size of the new internal texture. This will be rounded up to a power of 2.
Returns:
Nothing.

References CEGUI::Texture::getRenderer().

Referenced by CEGUI::DirectX10Renderer::createTexture().


Generated on Thu Nov 27 20:34:43 2008 for Crazy Eddies GUI System by  doxygen 1.5.7.1