16 class font_texture final {
24 [[nodiscard]] texture_ptr_type
texture()
const;
30 [[nodiscard]]
const std::shared_ptr<font> &
typeface()
const;
32 font_texture(context_ptr_type aContext, std::shared_ptr<font> aFont);
35 context_ptr_type m_pContext;
36 std::shared_ptr<font> m_pFont;
37 texture_ptr_type m_pTexture;
38 std::size_t m_UploadedAtlasGeneration = 0;
39 texture_data::channel_data m_Rgba;
void upload()
brings the texture up to the atlas: what has changed since the last upload is patched in,...
std::size_t uploaded_atlas_generation() const
the atlas generation the texture holds
texture_ptr_type texture() const
the texture, null before the first upload
const std::shared_ptr< font > & typeface() const
the font whose atlas this is
what the core takes: decoded channel data and the metadata describing it