|
KiCad PCB EDA Suite
|
Classes | |
| struct | CACHED_BITMAP |
Public Member Functions | |
| GL_BITMAP_CACHE () | |
| ~GL_BITMAP_CACHE () | |
| void | Abandon () |
| Drop the cached texture names without deleting them. | |
| GLuint | RequestBitmap (const BITMAP_BASE *aBitmap) |
Private Member Functions | |
| GLuint | cacheBitmap (const BITMAP_BASE *aBitmap) |
Private Attributes | |
| const size_t | m_cacheMaxElements = 50 |
| std::map< const KIID, CACHED_BITMAP > | m_bitmaps |
| std::list< KIID > | m_cacheLru |
| size_t | m_cacheSize |
| std::list< GLuint > | m_freedTextureIds |
Definition at line 115 of file opengl_gal.cpp.
|
inline |
Definition at line 118 of file opengl_gal.cpp.
References m_cacheSize.
| GL_BITMAP_CACHE::~GL_BITMAP_CACHE | ( | ) |
Definition at line 151 of file opengl_gal.cpp.
References m_bitmaps.
|
inline |
Drop the cached texture names without deleting them.
Definition at line 125 of file opengl_gal.cpp.
References m_bitmaps.
|
private |
Definition at line 195 of file opengl_gal.cpp.
References KIGFX::GL_BITMAP_CACHE::CACHED_BITMAP::accessTime, KIGFX::BITMAP_CACHE_MAX_BYTES, KIGFX::FitImageToTexture(), BITMAP_BASE::GetImageID(), BITMAP_BASE::GetOriginalImageData(), KIGFX::GL_BITMAP_CACHE::CACHED_BITMAP::h, KIGFX::GL_BITMAP_CACHE::CACHED_BITMAP::id, KIGFX::ImageToRgba(), m_bitmaps, m_cacheLru, m_cacheMaxElements, m_cacheSize, m_freedTextureIds, niluuid, KIGFX::GL_BITMAP_CACHE::CACHED_BITMAP::size, and KIGFX::GL_BITMAP_CACHE::CACHED_BITMAP::w.
Referenced by RequestBitmap().
| GLuint GL_BITMAP_CACHE::RequestBitmap | ( | const BITMAP_BASE * | aBitmap | ) |
Definition at line 158 of file opengl_gal.cpp.
References cacheBitmap(), BITMAP_BASE::GetImageID(), m_bitmaps, m_cacheLru, m_cacheSize, and m_freedTextureIds.
|
private |
Definition at line 142 of file opengl_gal.cpp.
Referenced by Abandon(), cacheBitmap(), RequestBitmap(), and ~GL_BITMAP_CACHE().
|
private |
Definition at line 143 of file opengl_gal.cpp.
Referenced by cacheBitmap(), and RequestBitmap().
|
private |
Definition at line 140 of file opengl_gal.cpp.
Referenced by cacheBitmap().
|
private |
Definition at line 144 of file opengl_gal.cpp.
Referenced by cacheBitmap(), GL_BITMAP_CACHE(), and RequestBitmap().
|
private |
Definition at line 145 of file opengl_gal.cpp.
Referenced by cacheBitmap(), and RequestBitmap().