Texture class that is created by DirectX81Renderer objects.
More...
|
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...
|
|
LPDIRECT3DTEXTURE8 | getD3DTexture (void) const |
| Return a pointer to the internal Direct3DTexture8 object. More...
|
|
void | setD3DTextureSize (uint size) |
| set the size of the internal D3D texture. Previous D3D texture is lost. More...
|
|
virtual void | preD3DReset (void) |
| Direct3D support method that must be called prior to a Reset call on the Direct3DDevice; this is required so that the GUI renderer can release any unmanaged D3D resources as needed for the device reset to succeed. More...
|
|
virtual void | postD3DReset (void) |
| Direct3D support method that must be called after a Reset call on the Direct3DDevice; this is required so that the GUI renderer can rebuild any unmanaged D3D resources after the device has been reset. More...
|
|
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...
|
|
|
Texture * | DirectX81Renderer::createTexture (void) |
|
Texture * | DirectX81Renderer::createTexture (const String &filename, const String &resourceGroup) |
|
Texture * | DirectX81Renderer::createTexture (float size) |
|
void | DirectX81Renderer::destroyTexture (Texture *texture) |
|
Texture class that is created by DirectX81Renderer objects.
LPDIRECT3DTEXTURE8 CEGUI::DirectX81Texture::getD3DTexture |
( |
void |
| ) |
const |
|
inline |
Return a pointer to the internal Direct3DTexture8 object.
- Returns
- Pointer to the IDirect3DTexture8 interface currently being used by this Texture object
virtual ushort CEGUI::DirectX81Texture::getHeight |
( |
void |
| ) |
const |
|
inlinevirtual |
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::DirectX81Texture::getOriginalHeight |
( |
void |
| ) |
const |
|
inlinevirtual |
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::DirectX81Texture::getOriginalWidth |
( |
void |
| ) |
const |
|
inlinevirtual |
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::DirectX81Texture::getWidth |
( |
void |
| ) |
const |
|
inlinevirtual |
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::DirectX81Texture::loadFromFile |
( |
const String & |
filename, |
|
|
const String & |
resourceGroup |
|
) |
| |
|
virtual |
void CEGUI::DirectX81Texture::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.
void CEGUI::DirectX81Texture::postD3DReset |
( |
void |
| ) |
|
|
virtual |
Direct3D support method that must be called after a Reset call on the Direct3DDevice; this is required so that the GUI renderer can rebuild any unmanaged D3D resources after the device has been reset.
- Note
- You do not need to call this on DirectX81Texture objects created via the DirectX81Renderer object; for such textures the method is called by the system when you call the DirectX81Renderer::postD3DReset method.
References loadFromFile().
void CEGUI::DirectX81Texture::preD3DReset |
( |
void |
| ) |
|
|
virtual |
Direct3D support method that must be called prior to a Reset call on the Direct3DDevice; this is required so that the GUI renderer can release any unmanaged D3D resources as needed for the device reset to succeed.
- Note
- You do not need to call this on DirectX81Texture objects created via the DirectX81Renderer object; for such textures the method is called by the system when you call the DirectX81Renderer::preD3DReset method.
void CEGUI::DirectX81Texture::setD3DTextureSize |
( |
uint |
size | ) |
|