Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void OglGui::OglImageCache::Add ( OGLIMAGE *  im,
unsigned long long  id,
bool  allowReplace = false 
) [inline]

Definition at line 149 of file OglImageCache.h.

References GetImIdPair(), and GetLRU().

Referenced by AddNoScalingTextured(), Impala::Application::MediaTable::MediaTable::Init(), OglGui::WindowTimeLine::LoadViewImage(), Impala::Application::MediaTable::RandomImageWindow::LoadViewImage(), and Impala::Application::MediaTable::TableViewCache::ProcessDelayLoad().

00150     {
00151         ImIdPair* p = 0;
00152 
00153         if (allowReplace)
00154             p = GetImIdPair(id);
00155         if (!p)
00156             p = GetLRU();
00157         if (im)
00158             im->refCount++;
00159         if (p->first)
00160             ReleaseOglImage(p->first);
00161         p->first   = im;
00162         p->second  = id;
00163     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:03:58 2010 for ImpalaSrc by  doxygen 1.5.1