Definition at line 30 of file EdgeBleeding.h.
#include <EdgeBleeding.h>
Public Member Functions |
|
| void | Request (mudbox::Texture *pTexture) |
| void | Clear () |
| void Request | ( | mudbox::Texture * | pTexture | ) | [inline] |
Definition at line 33 of file EdgeBleeding.h.
{
for( int i=0; i<cache.size(); i++ )
if( cache.at(i) == pTexture )
return;
if( cache.size() >= MAX_TEXTURE_COUNT )
{
mudbox::Texture *pT = cache.takeFirst();
pT->AddDirtyTile( mudbox::ImgTile (0, 0, pT->Width(), pT->Height()) );
pT->SetLocation( mudbox::TexturePool::locationCPU );
};
cache.append( pTexture );
if( pTexture->Location() != mudbox::TexturePool::locationGPU )
pTexture->SetLocation( mudbox::TexturePool::locationGPU );
};
| void Clear | ( | ) | [inline] |
Definition at line 51 of file EdgeBleeding.h.
{
// for( int i=0; i<cache.size(); i++ )
// cache.at(i)->SetLocation( mudbox::TexturePool::locationCPU );
cache.clear();
};