Public Member Functions | |
InternalTex (tResourcePath const &path) | |
void | Release () |
void | Use () |
Public Attributes | |
int | use_ |
tResourcePath | path_ |
Definition at line 191 of file rTexture.h.
rResourceTexture::InternalTex::InternalTex | ( | tResourcePath const & | path | ) |
Definition at line 813 of file rTexture.cpp.
References rResourceTexture::textures.
00813 : rFileTexture(rTextureGroups::TEX_OBJ, tResourceManager::locateResource(path.Path().c_str()).c_str(), true, true, true, 0), use_(1), path_(path) { 00814 textures.push_back(this); 00815 }
void rResourceTexture::InternalTex::Release | ( | ) |
Definition at line 817 of file rTexture.cpp.
References path_, rResourceTexture::textures, rITexture::Unload(), and use_.
Referenced by rResourceTexture::operator=(), and rResourceTexture::~rResourceTexture().
00817 { 00818 if(--use_ < 1) { 00819 for(texlist_t::iterator iter = textures.begin(); iter != textures.end(); ++iter) { 00820 if((*iter)->path_ == path_) { 00821 textures.erase(iter); 00822 break; 00823 } 00824 } 00825 Unload(); 00826 delete this; 00827 } 00828 }
void rResourceTexture::InternalTex::Use | ( | ) | [inline] |
Definition at line 200 of file rTexture.h.
References use_.
Referenced by rResourceTexture::operator=(), and rResourceTexture::rResourceTexture().
00200 {++use_;}
Reimplemented from rFileTexture.
Definition at line 195 of file rTexture.h.
Referenced by rResourceTexture::Path(), and Release().