Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CEGUI::IrrlichtTexture Class Reference

#include <irrlichttexture.h>

Inheritance diagram for CEGUI::IrrlichtTexture:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IrrlichtTexture (Renderer *r, irr::IrrlichtDevice *device)
virtual ~IrrlichtTexture ()
irr::video::ITexture * getTexture ()
void setTexture (irr::video::ITexture *texture)
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 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)
 Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image.
RenderergetRenderer (void) const
 Return a pointer to the Renderer object that created and owns this Texture.

Constructor & Destructor Documentation

CEGUI::IrrlichtTexture::IrrlichtTexture Renderer r,
irr::IrrlichtDevice *  device
 

Definition at line 40 of file irrlichttexture.cpp.

CEGUI::IrrlichtTexture::~IrrlichtTexture  )  [virtual]
 

Definition at line 46 of file irrlichttexture.cpp.


Member Function Documentation

ushort CEGUI::IrrlichtTexture::getHeight void   )  const [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.

Definition at line 77 of file irrlichttexture.cpp.

References CEGUI::ushort.

Renderer* CEGUI::Texture::getRenderer void   )  const [inline, inherited]
 

Return a pointer to the Renderer object that created and owns this Texture.

Returns:
Pointer to the Renderer object that owns the 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().

irr::video::ITexture * CEGUI::IrrlichtTexture::getTexture  ) 
 

Definition at line 50 of file irrlichttexture.cpp.

ushort CEGUI::IrrlichtTexture::getWidth void   )  const [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.

Definition at line 71 of file irrlichttexture.cpp.

References CEGUI::ushort.

void CEGUI::IrrlichtTexture::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.

Definition at line 83 of file irrlichttexture.cpp.

References CEGUI::String::c_str().

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

void CEGUI::IrrlichtTexture::loadFromMemory const void *  buffPtr,
uint  buffWidth,
uint  buffHeight
[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 0xAARRGGBB pixels)
buffHeight Height of the buffer (in 0xAARRGGBB pixels)
Returns:
Nothing.

Implements CEGUI::Texture.

Definition at line 92 of file irrlichttexture.cpp.

void CEGUI::IrrlichtTexture::setTexture irr::video::ITexture *  texture  ) 
 

Definition at line 55 of file irrlichttexture.cpp.


The documentation for this class was generated from the following files:
Generated on Wed Feb 16 12:41:22 2005 for Crazy Eddies GUI System by  doxygen 1.3.9.1