Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::canvas::MsdfAtlas Class Reference

#include <msdf_atlas.hpp>

Public Member Functions

 MsdfAtlas ()
 ~MsdfAtlas ()
 MsdfAtlas (const MsdfAtlas &)=delete
MsdfAtlas & operator= (const MsdfAtlas &)=delete
 MsdfAtlas (MsdfAtlas &&) noexcept
MsdfAtlas & operator= (MsdfAtlas &&) noexcept
bool build (const std::string &font_family, const std::vector< char32_t > &chars, int base_size=48, int padding=8, int max_atlas_size=2048, bool include_alpha=false)
const MsdfGlyph * glyph (char32_t codepoint) const
const std::uint8_t * pixels () const
int width () const
int height () const
int channels () const
std::size_t glyph_count () const
int base_size () const

Constructor & Destructor Documentation

◆ MsdfAtlas() [1/3]

pulp::canvas::MsdfAtlas::MsdfAtlas ( )

◆ ~MsdfAtlas()

pulp::canvas::MsdfAtlas::~MsdfAtlas ( )

◆ MsdfAtlas() [2/3]

pulp::canvas::MsdfAtlas::MsdfAtlas ( const MsdfAtlas & )
delete

◆ MsdfAtlas() [3/3]

pulp::canvas::MsdfAtlas::MsdfAtlas ( MsdfAtlas && )
noexcept

Member Function Documentation

◆ base_size()

int pulp::canvas::MsdfAtlas::base_size ( ) const

◆ build()

bool pulp::canvas::MsdfAtlas::build ( const std::string & font_family,
const std::vector< char32_t > & chars,
int base_size = 48,
int padding = 8,
int max_atlas_size = 2048,
bool include_alpha = false )

◆ channels()

int pulp::canvas::MsdfAtlas::channels ( ) const

◆ glyph()

const MsdfGlyph * pulp::canvas::MsdfAtlas::glyph ( char32_t codepoint) const

◆ glyph_count()

std::size_t pulp::canvas::MsdfAtlas::glyph_count ( ) const

◆ height()

int pulp::canvas::MsdfAtlas::height ( ) const

◆ operator=() [1/2]

MsdfAtlas & pulp::canvas::MsdfAtlas::operator= ( const MsdfAtlas & )
delete

◆ operator=() [2/2]

MsdfAtlas & pulp::canvas::MsdfAtlas::operator= ( MsdfAtlas && )
noexcept

◆ pixels()

const std::uint8_t * pulp::canvas::MsdfAtlas::pixels ( ) const

◆ width()

int pulp::canvas::MsdfAtlas::width ( ) const

The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/canvas/include/pulp/canvas/msdf_atlas.hpp