#include <CEGUITexture.h>
Inheritance diagram for CEGUI::Texture:
Public Member Functions | |
virtual ushort | getWidth (void) const =0 |
Returns the current pixel width of the texture. | |
virtual ushort | getHeight (void) const =0 |
Returns the current pixel height of the texture. | |
virtual void | loadFromFile (const String &filename, const String &resourceGroup)=0 |
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)=0 |
Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image. | |
Renderer * | getRenderer (void) const |
Return a pointer to the Renderer object that created and owns this Texture. | |
virtual | ~Texture (void) |
Destructor for Texture base class. This is never called by client code. | |
Protected Member Functions | |
Texture (Renderer *owner) | |
Constructor for Texture base class. This is never called by client code. |
Texture objects are created via the Renderer. The actual inner workings of any Texture object are dependant upon the Renderer (and underlying API) in use. This base class defines the minimal set of functions that is required for the rest of the system to work. Texture objects are only created through the Renderer object's texture creation functions.
Definition at line 45 of file CEGUITexture.h.
|
Constructor for Texture base class. This is never called by client code.
Definition at line 124 of file CEGUITexture.h. |
|
Destructor for Texture base class. This is never called by client code.
Definition at line 131 of file CEGUITexture.h. |
|
Returns the current pixel height of the texture.
Implemented in CEGUI::DirectX81Texture, CEGUI::DirectX9Texture, CEGUI::IrrlichtTexture, and CEGUI::OpenGLTexture. Referenced by CEGUI::IrrlichtRenderer::addQuad(), CEGUI::Imageset::draw(), CEGUI::DirectX81Renderer::getHeight(), CEGUI::OpenGLRenderer::getHeight(), and CEGUI::DirectX9Renderer::getHeight(). |
|
Return a pointer to the Renderer object that created and owns this Texture.
Definition at line 113 of file CEGUITexture.h. Referenced by CEGUI::Imageset::draw(), CEGUI::DirectX81Texture::loadFromFile(), CEGUI::DirectX9Texture::loadFromFile(), CEGUI::DirectX81Texture::loadFromMemory(), CEGUI::DirectX9Texture::loadFromMemory(), CEGUI::DirectX81Texture::setD3DTextureSize(), CEGUI::DirectX9Texture::setD3DTextureSize(), and CEGUI::Imageset_xmlHandler::startElement(). |
|
Returns the current pixel width of the texture.
Implemented in CEGUI::DirectX81Texture, CEGUI::DirectX9Texture, CEGUI::IrrlichtTexture, and CEGUI::OpenGLTexture. Referenced by CEGUI::IrrlichtRenderer::addQuad(), CEGUI::Imageset::draw(), CEGUI::DirectX81Renderer::getWidth(), CEGUI::OpenGLRenderer::getWidth(), and CEGUI::DirectX9Renderer::getWidth(). |
|
Loads the specified image file into the texture. The texture is resized as required to hold the image.
Implemented in CEGUI::DirectX81Texture, CEGUI::DirectX9Texture, CEGUI::IrrlichtTexture, and CEGUI::OpenGLTexture. |
|
Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image.
Implemented in CEGUI::DirectX81Texture, CEGUI::DirectX9Texture, CEGUI::IrrlichtTexture, and CEGUI::OpenGLTexture. |