|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< Core::VKImage > MayaFlux::Portal::Text::AtlasImage::sync | ( | GlyphAtlas & | atlas | ) |
Bring the image up to date with atlas.
Creates the image on first use and again when atlas is a different atlas, has a different size from the one last synced, or the image was released by the texture manager shutting down. Otherwise uploads the atlas pixels only when it is dirty.
| atlas | Atlas to mirror. |
Definition at line 9 of file AtlasImage.cpp.
References MayaFlux::Journal::API, MayaFlux::Portal::Text::GlyphAtlas::atlas_size(), MayaFlux::Portal::Text::GlyphAtlas::clear_dirty(), MayaFlux::Portal::Graphics::get_texture_manager(), MayaFlux::Portal::Text::GlyphAtlas::is_dirty(), m_atlas, m_generation, m_image, m_size, MF_ERROR, MayaFlux::Kakshya::TextureContainer::pixel_bytes(), pixels, MayaFlux::Journal::Portal, size, and MayaFlux::Portal::Text::GlyphAtlas::texture().
Referenced by MayaFlux::Portal::Forma::internal::TextSlice::refresh().
Here is the call graph for this function:
Here is the caller graph for this function: