rResourceTexture::InternalTex Class Reference

Inheritance diagram for rResourceTexture::InternalTex:

Inheritance graph
[legend]
Collaboration diagram for rResourceTexture::InternalTex:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 InternalTex (tResourcePath const &path)
void Release ()
void Use ()

Public Attributes

int use_
tResourcePath path_


Detailed Description

Definition at line 191 of file rTexture.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

void rResourceTexture::InternalTex::Use (  )  [inline]

Definition at line 200 of file rTexture.h.

References use_.

Referenced by rResourceTexture::operator=(), and rResourceTexture::rResourceTexture().

00200 {++use_;}

Here is the caller graph for this function:


Member Data Documentation

int rResourceTexture::InternalTex::use_

Definition at line 194 of file rTexture.h.

Referenced by Release(), and Use().

tResourcePath rResourceTexture::InternalTex::path_

Reimplemented from rFileTexture.

Definition at line 195 of file rTexture.h.

Referenced by rResourceTexture::Path(), and Release().


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:53:39 2008 for Armagetron Advanced by  doxygen 1.5.4