|
Crazy Eddies GUI System
0.6.2
|
Texture class that is created by DirectX10Renderer objects. More...
Inheritance diagram for CEGUI::DirectX10Texture:
Collaboration diagram for CEGUI::DirectX10Texture:Public Member Functions | |
| virtual ushort | getWidth (void) const |
| Returns the current pixel width of the texture. More... | |
| virtual ushort | getHeight (void) const |
| Returns the current pixel height of the texture. More... | |
| virtual ushort | getOriginalWidth (void) const |
| Returns the original pixel width of the data loaded into the texture. More... | |
| virtual ushort | getOriginalHeight (void) const |
| Returns the original pixel height of the data loaded into the texture. More... | |
| 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. More... | |
| 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. More... | |
| LPDIRECT3DTEXTURE2D | getD3DTexture (void) const |
| Return a pointer to the internal Direct3DTexture9 object. More... | |
| ID3D10ShaderResourceView * | getD3DResourceView (void) const |
| void | setD3DTextureSize (uint size) |
| set the size of the internal D3D texture. Previous D3D texture is lost. More... | |
Public Member Functions inherited from CEGUI::Texture | |
| virtual float | getXScale (void) const |
| Returns the current scale used for the width of the texture. More... | |
| virtual float | getYScale (void) const |
| Returns the current scale used for the height of the texture. More... | |
| Renderer * | getRenderer (void) const |
| Return a pointer to the Renderer object that created and owns this Texture. More... | |
Friends | |
| Texture * | DirectX10Renderer::createTexture (void) |
| Texture * | DirectX10Renderer::createTexture (const String &filename, const String &resourceGroup) |
| Texture * | DirectX10Renderer::createTexture (float size) |
| void | DirectX10Renderer::destroyTexture (Texture *texture) |
Additional Inherited Members | |
Public Types inherited from CEGUI::Texture | |
| enum | PixelFormat { PF_RGB, PF_RGBA } |
| Enum containing the list of supported pixel formats that can be passed to loadFromMemory. More... | |
Protected Member Functions inherited from CEGUI::Texture | |
| Texture (Renderer *owner) | |
| Constructor for Texture base class. This is never called by client code. | |
| virtual | ~Texture (void) |
| Destructor for Texture base class. This is never called by client code. | |
Texture class that is created by DirectX10Renderer objects.
|
inline |
Return a pointer to the internal Direct3DTexture9 object.
|
inlinevirtual |
Returns the current pixel height of the texture.
Implements CEGUI::Texture.
|
inlinevirtual |
Returns the original pixel height of the data loaded into the texture.
Reimplemented from CEGUI::Texture.
|
inlinevirtual |
Returns the original pixel width of the data loaded into the texture.
Reimplemented from CEGUI::Texture.
|
inlinevirtual |
Returns the current pixel width of the texture.
Implements CEGUI::Texture.
|
virtual |
Loads the specified image file into the texture. The texture is resized
as required to hold the image.
| filename | The filename of the image file that is to be loaded into the texture |
| resourceGroup | Resource group identifier passed to the resource provider. |
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().
|
virtual |
Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image.
| 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 |
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.
| size | pixel size of the new internal texture. This will be rounded up to a power of 2. |
References CEGUI::Texture::getRenderer().
Referenced by CEGUI::DirectX10Renderer::createTexture().
1.8.3.1