FastUIDraw
Public Member Functions | Protected Member Functions | List of all members
fastuidraw::GlyphAtlasBackingStoreBase Class Referenceabstract

GlyphAtlasStoreBase represents an interface to an aray of uint32_t values. More...

#include <glyph_atlas.hpp>

Inheritance diagram for fastuidraw::GlyphAtlasBackingStoreBase:
Inheritance graph
[legend]

Public Member Functions

virtual void flush (void)=0
 
void resize (unsigned int new_size)
 
virtual void set_values (unsigned int location, c_array< const uint32_t > pdata)=0
 
unsigned int size (void)
 
- Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter >
 reference_counted_base (void)
 

Protected Member Functions

 GlyphAtlasBackingStoreBase (unsigned int psize)
 
virtual void resize_implement (unsigned int new_size)=0
 

Additional Inherited Members

- Static Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter >
static void add_reference (const reference_counted_base< T, Counter > *p)
 
static void remove_reference (const reference_counted_base< T, Counter > *p)
 

Detailed Description

GlyphAtlasStoreBase represents an interface to an aray of uint32_t values.

An example implementation in GL would be a buffer object that backs a single usamplerBuffer. An implementation of the class does NOT need to be thread safe because the user of the backing store, GlyphAtlas performs calls to the backing store behind its own mutex.

Definition at line 43 of file glyph_atlas.hpp.

Constructor & Destructor Documentation

◆ GlyphAtlasBackingStoreBase()

fastuidraw::GlyphAtlasBackingStoreBase::GlyphAtlasBackingStoreBase ( unsigned int  psize)
explicitprotected

Ctor.

Parameters
psizenumber of uint32_t elements that the GlyphAtlasBackingStoreBase backs

Member Function Documentation

◆ flush()

virtual void fastuidraw::GlyphAtlasBackingStoreBase::flush ( void  )
pure virtual

To be implemented by a derived class to flush contents to the backing store.

◆ resize()

void fastuidraw::GlyphAtlasBackingStoreBase::resize ( unsigned int  new_size)

Resize the object to a larger size.

Parameters
new_sizenew number of uint32_t for the store to back

◆ resize_implement()

virtual void fastuidraw::GlyphAtlasBackingStoreBase::resize_implement ( unsigned int  new_size)
protectedpure virtual

To be implemented by a derived class to resize the object. When called, the return value of size() is the size before the resize completes.

Parameters
new_sizenew number of int32_t for the store to back

◆ set_values()

virtual void fastuidraw::GlyphAtlasBackingStoreBase::set_values ( unsigned int  location,
c_array< const uint32_t >  pdata 
)
pure virtual

To be implemented by a derived class to load data into the store.

Parameters
locationto load data
pdatadata to load

◆ size()

unsigned int fastuidraw::GlyphAtlasBackingStoreBase::size ( void  )

Returns the number of uint32_t backed by the store.


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