xoreos
0.0.5
|
A handle to a texture. More...
#include <texturehandle.h>
Public Member Functions | |
TextureHandle () | |
TextureHandle (const TextureHandle &right) | |
~TextureHandle () | |
TextureHandle & | operator= (const TextureHandle &right) |
bool | empty () const |
const Common::UString & | getName () const |
void | clear () |
Texture & | getTexture () const |
Private Member Functions | |
TextureHandle (TextureMap::iterator &i) | |
Private Attributes | |
bool | _empty |
TextureMap::iterator | _it |
Friends | |
class | TextureManager |
A handle to a texture.
Definition at line 51 of file texturehandle.h.
Graphics::Aurora::TextureHandle::TextureHandle | ( | ) |
Definition at line 43 of file texturehandle.cpp.
Graphics::Aurora::TextureHandle::TextureHandle | ( | const TextureHandle & | right | ) |
Definition at line 50 of file texturehandle.cpp.
Graphics::Aurora::TextureHandle::~TextureHandle | ( | ) |
Definition at line 54 of file texturehandle.cpp.
References clear().
|
private |
Definition at line 46 of file texturehandle.cpp.
References _it.
void Graphics::Aurora::TextureHandle::clear | ( | ) |
Definition at line 81 of file texturehandle.cpp.
References TextureMan.
Referenced by Graphics::Aurora::GUIQuad::GUIQuad(), operator=(), Graphics::Aurora::ModelNode::setEnvironmentMap(), Engines::NWN::Portrait::setPortrait(), Graphics::Aurora::GUIQuad::setTexture(), and ~TextureHandle().
bool Graphics::Aurora::TextureHandle::empty | ( | ) | const |
Definition at line 69 of file texturehandle.cpp.
References _empty.
Referenced by Graphics::Aurora::BorderQuad::BorderQuad(), Graphics::Aurora::ModelNode_Witcher::buildMaterial(), Graphics::Aurora::ModelNode::buildMaterial(), Graphics::Aurora::Model_Sonic::createPrimitives(), Graphics::Aurora::ModelNode::getEnvironmentMap(), Graphics::Aurora::GUIQuad::GUIQuad(), Engines::NWN::Creature::loadModel(), Engines::Sonic::loadNCGR(), Graphics::Aurora::BorderQuad::render(), Engines::NWN::Portrait::render(), Graphics::Aurora::GUIQuad::render(), Graphics::Aurora::TextureManager::set(), and Engines::NWN::Portrait::setPortrait().
const Common::UString & Graphics::Aurora::TextureHandle::getName | ( | ) | const |
Definition at line 74 of file texturehandle.cpp.
References _empty, _it, and Graphics::Aurora::kEmptyString.
Referenced by Graphics::Aurora::ModelNode_Witcher::buildMaterial(), Graphics::Aurora::ModelNode::buildMaterial(), Engines::Jade::GUIBackground::tryBackground(), and Engines::KotOR::GUIBackground::tryBackground().
Texture & Graphics::Aurora::TextureHandle::getTexture | ( | ) | const |
Definition at line 85 of file texturehandle.cpp.
Referenced by Graphics::Aurora::BorderQuad::BorderQuad(), Graphics::Aurora::ModelNode_Witcher::buildMaterial(), Graphics::Aurora::ModelNode::buildMaterial(), Graphics::Aurora::ABCFont::calcCharVertices(), Graphics::Aurora::Model_Sonic::createPrimitives(), Graphics::Aurora::NFTRFont::drawGlyphs(), Engines::Sonic::AreaBackground::getImageHeight(), Engines::Sonic::AreaBackground::getImageWidth(), Graphics::Aurora::GUIQuad::GUIQuad(), Engines::WidgetScrollbar::load(), Engines::WidgetCheckBox::load(), Engines::KotORInventoryItem::load(), Graphics::Aurora::TextureFont::load(), Graphics::Aurora::BorderQuad::render(), Graphics::Aurora::CubeSide::render(), Engines::NWN::Portrait::render(), Graphics::Aurora::GUIQuad::render(), and Engines::Sonic::AreaBackground::setPosition().
TextureHandle & Graphics::Aurora::TextureHandle::operator= | ( | const TextureHandle & | right | ) |
Definition at line 58 of file texturehandle.cpp.
References clear(), and TextureMan.
|
friend |
Definition at line 72 of file texturehandle.h.
|
private |
Definition at line 67 of file texturehandle.h.
Referenced by Graphics::Aurora::TextureManager::assign(), empty(), getName(), getTexture(), and Graphics::Aurora::TextureManager::release().
|
private |
Definition at line 68 of file texturehandle.h.
Referenced by Graphics::Aurora::TextureManager::assign(), getName(), getTexture(), Graphics::Aurora::TextureManager::release(), Graphics::Aurora::TextureManager::set(), and TextureHandle().