#include <TextureStore.h>
Public Member Functions | |
| GLTexture * | loadTexture (const std::string &name, const std::string &aname="", bool invert=false) |
Static Public Member Functions | |
| static TextureStore * | instance () |
Protected Attributes | |
| std::map < std::string, GLTexture * > | skins_ |
Static Protected Attributes | |
| static TextureStore * | instance_ = 0 |
Private Member Functions | |
| TextureStore () | |
| virtual | ~TextureStore () |
Definition at line 28 of file TextureStore.h.
| TextureStore::TextureStore | ( | ) | [private] |
Definition at line 38 of file TextureStore.cpp.
| TextureStore::~TextureStore | ( | ) | [private, virtual] |
Definition at line 42 of file TextureStore.cpp.
| TextureStore * TextureStore::instance | ( | ) | [static] |
Definition at line 29 of file TextureStore.cpp.
References instance_.
Referenced by Lightning::draw(), NetworkSelectDialog::drawColumnGames(), ModelRendererMesh::drawMesh(), GLWIconListModItem::GLWIconListModItem(), GLWIconListSaveItem::GLWIconListSaveItem(), GLWIconListSubModItem::GLWIconListSubModItem(), GLWIcon::initFromXML(), MsgBoxDialog::MsgBoxDialog(), and SettingsSubSelectDialogListItem::SettingsSubSelectDialogListItem().
| GLTexture * TextureStore::loadTexture | ( | const std::string & | name, | |
| const std::string & | aname = "", |
|||
| bool | invert = false | |||
| ) |
Definition at line 46 of file TextureStore.cpp.
References GLTexture::create(), S3D::dialogMessage(), S3D::formatStringBuffer(), Image::getBits(), Image::getHeight(), Image::getWidth(), OptionsDisplay::instance(), ImageFactory::loadImage(), and skins_.
Referenced by Lightning::draw(), NetworkSelectDialog::drawColumnGames(), ModelRendererMesh::drawMesh(), GLWIconListModItem::GLWIconListModItem(), GLWIconListSaveItem::GLWIconListSaveItem(), GLWIconListSubModItem::GLWIconListSubModItem(), GLWIcon::initFromXML(), MsgBoxDialog::MsgBoxDialog(), and SettingsSubSelectDialogListItem::SettingsSubSelectDialogListItem().
TextureStore * TextureStore::instance_ = 0 [static, protected] |
std::map<std::string, GLTexture *> TextureStore::skins_ [protected] |
1.5.3