KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::GL_BITMAP_CACHE Class Reference

Classes

struct  CACHED_BITMAP
 

Public Member Functions

 GL_BITMAP_CACHE ()
 
 ~GL_BITMAP_CACHE ()
 
GLuint RequestBitmap (const BITMAP_BASE *aBitmap)
 

Private Member Functions

GLuint cacheBitmap (const BITMAP_BASE *aBitmap)
 

Private Attributes

const size_t m_cacheMaxElements = 50
 
const size_t m_cacheMaxSize = 256 * 1024 * 1024
 
std::map< const KIID, CACHED_BITMAPm_bitmaps
 
std::list< KIIDm_cacheLru
 
size_t m_cacheSize
 
std::list< GLuint > m_freedTextureIds
 

Detailed Description

Definition at line 91 of file opengl_gal.cpp.

Constructor & Destructor Documentation

◆ GL_BITMAP_CACHE()

KIGFX::GL_BITMAP_CACHE::GL_BITMAP_CACHE ( )
inline

Definition at line 94 of file opengl_gal.cpp.

◆ ~GL_BITMAP_CACHE()

GL_BITMAP_CACHE::~GL_BITMAP_CACHE ( )

Definition at line 125 of file opengl_gal.cpp.

References m_bitmaps.

Member Function Documentation

◆ cacheBitmap()

◆ RequestBitmap()

GLuint GL_BITMAP_CACHE::RequestBitmap ( const BITMAP_BASE aBitmap)

Member Data Documentation

◆ m_bitmaps

std::map<const KIID, CACHED_BITMAP> KIGFX::GL_BITMAP_CACHE::m_bitmaps
private

Definition at line 116 of file opengl_gal.cpp.

Referenced by cacheBitmap(), RequestBitmap(), and ~GL_BITMAP_CACHE().

◆ m_cacheLru

std::list<KIID> KIGFX::GL_BITMAP_CACHE::m_cacheLru
private

Definition at line 117 of file opengl_gal.cpp.

Referenced by cacheBitmap(), and RequestBitmap().

◆ m_cacheMaxElements

const size_t KIGFX::GL_BITMAP_CACHE::m_cacheMaxElements = 50
private

Definition at line 113 of file opengl_gal.cpp.

Referenced by cacheBitmap().

◆ m_cacheMaxSize

const size_t KIGFX::GL_BITMAP_CACHE::m_cacheMaxSize = 256 * 1024 * 1024
private

Definition at line 114 of file opengl_gal.cpp.

Referenced by cacheBitmap().

◆ m_cacheSize

size_t KIGFX::GL_BITMAP_CACHE::m_cacheSize
private

Definition at line 118 of file opengl_gal.cpp.

Referenced by cacheBitmap(), and RequestBitmap().

◆ m_freedTextureIds

std::list<GLuint> KIGFX::GL_BITMAP_CACHE::m_freedTextureIds
private

Definition at line 119 of file opengl_gal.cpp.

Referenced by cacheBitmap(), and RequestBitmap().


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