- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- Class List
- Class Hierarchy
- Class Members

Public Member Functions

# TextureCache Class Reference

Search for all occurrences

## Detailed Description

Definition at line 30 of file EdgeBleeding.h.

`#include <EdgeBleeding.h>`

List of all members.

## Public Member Functions
void | Request (mudbox::Texture *pTexture)
void | Clear ()

## Member Function Documentation

void Request | ( | mudbox::Texture * | pTexture | ) | `[inline]`

Search for all occurrences

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]`

Search for all occurrences

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();
        };

The documentation for this class was generated from the following file:

- EdgeBleeding/EdgeBleeding.h

TextureCache TextureCache TextureCache TextureCache TextureCache TextureCache TextureCache TextureCache TextureCache TextureCache
TextureCache TextureCache TextureCache TextureCache TextureCache TextureCache TextureCache TextureCache TextureCache TextureCache