Flutter Engine
The Flutter Engine
|
A container for caching a glyph atlas across frames. More...
#include <glyph_atlas.h>
Public Member Functions | |
virtual | ~GlyphAtlasContext () |
std::shared_ptr< GlyphAtlas > | GetGlyphAtlas () const |
Retrieve the current glyph atlas. | |
const ISize & | GetAtlasSize () const |
Retrieve the size of the current glyph atlas. | |
std::shared_ptr< RectanglePacker > | GetRectPacker () const |
Retrieve the previous (if any) rect packer. | |
void | UpdateGlyphAtlas (std::shared_ptr< GlyphAtlas > atlas, ISize size) |
Update the context with a newly constructed glyph atlas. | |
void | UpdateRectPacker (std::shared_ptr< RectanglePacker > rect_packer) |
Protected Member Functions | |
GlyphAtlasContext () | |
A container for caching a glyph atlas across frames.
Definition at line 146 of file glyph_atlas.h.
|
virtual |
Definition at line 16 of file glyph_atlas.cc.
|
protected |
Definition at line 12 of file glyph_atlas.cc.
const ISize & impeller::GlyphAtlasContext::GetAtlasSize | ( | ) | const |
Retrieve the size of the current glyph atlas.
Definition at line 22 of file glyph_atlas.cc.
std::shared_ptr< GlyphAtlas > impeller::GlyphAtlasContext::GetGlyphAtlas | ( | ) | const |
Retrieve the current glyph atlas.
Definition at line 18 of file glyph_atlas.cc.
std::shared_ptr< RectanglePacker > impeller::GlyphAtlasContext::GetRectPacker | ( | ) | const |
Retrieve the previous (if any) rect packer.
Definition at line 26 of file glyph_atlas.cc.
void impeller::GlyphAtlasContext::UpdateGlyphAtlas | ( | std::shared_ptr< GlyphAtlas > | atlas, |
ISize | size | ||
) |
Update the context with a newly constructed glyph atlas.
Definition at line 30 of file glyph_atlas.cc.
void impeller::GlyphAtlasContext::UpdateRectPacker | ( | std::shared_ptr< RectanglePacker > | rect_packer | ) |
Definition at line 36 of file glyph_atlas.cc.