LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
OpenGLGlyphCache Class Reference

#include <winlayout.hxx>

Public Member Functions

 OpenGLGlyphCache ()
 ~OpenGLGlyphCache ()
void RemoveTextures (std::vector< GLuint > &rTextureIDs)
void PutDrawElementInCache (const OpenGLGlyphDrawElement &rElement, int nGlyphIndex)
OpenGLGlyphDrawElementGetDrawElement (int nGlyphIndex)
bool IsGlyphCached (int nGlyphIndex) const

Static Public Member Functions

static bool ReserveTextureSpace (OpenGLGlyphDrawElement &rElement, int nWidth, int nHeight)

Private Attributes

std::unordered_map< int, OpenGLGlyphDrawElementmaOpenGLTextureCache

Detailed Description

Definition at line 75 of file winlayout.hxx.

Constructor & Destructor Documentation

OpenGLGlyphCache::OpenGLGlyphCache ( )
OpenGLGlyphCache::~OpenGLGlyphCache ( )

Member Function Documentation

OpenGLGlyphDrawElement& OpenGLGlyphCache::GetDrawElement ( int  nGlyphIndex)

Definition at line 133 of file winlayout.hxx.

References IsGlyphCached().

bool OpenGLGlyphCache::IsGlyphCached ( int  nGlyphIndex) const

Definition at line 139 of file winlayout.hxx.

Referenced by GetDrawElement(), and PutDrawElementInCache().

void OpenGLGlyphCache::PutDrawElementInCache ( const OpenGLGlyphDrawElement rElement,
int  nGlyphIndex 

Definition at line 127 of file winlayout.hxx.

References IsGlyphCached().

void OpenGLGlyphCache::RemoveTextures ( std::vector< GLuint > &  rTextureIDs)

Definition at line 108 of file winlayout.hxx.

static bool OpenGLGlyphCache::ReserveTextureSpace ( OpenGLGlyphDrawElement rElement,
int  nWidth,
int  nHeight 

Member Data Documentation

std::unordered_map<int, OpenGLGlyphDrawElement> OpenGLGlyphCache::maOpenGLTextureCache

Definition at line 78 of file winlayout.hxx.

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