oa::TextAtlas

Manages the device-side coverage atlas and the glyph metadata table.

Public Methods

oa::U32 oa::TextAtlas::atlasBindlessIndex(FontId inFont)
oa::F32 oa::TextAtlas::atlasHeight()
oa::F32 oa::TextAtlas::atlasWidth()
const GlyphInfo * oa::TextAtlas::findGlyph(FontId inFont, oa::U32 inCodepoint, oa::F32 inPixelSize)
oa::Status oa::TextAtlas::init(oa::Engine & inRt)
oa::F32 oa::TextAtlas::pxRange()

Constructor & Destructor Documentation

oa::TextAtlas::TextAtlas()
No public source comment is attached to this declaration.
void oa::TextAtlas::~TextAtlas()
No public source comment is attached to this declaration.

Public Method Documentation

oa::U32 oa::TextAtlas::atlasBindlessIndex( FontId inFont )
No public source comment is attached to this declaration.

Parameters

inFont
FontId

Returns

oa::U32

The declared return value.

oa::F32 oa::TextAtlas::atlasHeight()
No public source comment is attached to this declaration.

Returns

oa::F32

The declared return value.

oa::F32 oa::TextAtlas::atlasWidth()
No public source comment is attached to this declaration.

Returns

oa::F32

The declared return value.

const GlyphInfo * oa::TextAtlas::findGlyph( FontId inFont, oa::U32 inCodepoint, oa::F32 inPixelSize )
Selects the nearest generated physical-pixel strike. Returns nullptr for unmapped codepoints or an invalid font/size.

Parameters

inFont
FontId

inCodepoint
oa::U32

inPixelSize
oa::F32

Returns

const GlyphInfo *

The declared return value.

oa::Status oa::TextAtlas::init( oa::Engine & inRt )
No public source comment is attached to this declaration.

Parameters

inRt
oa::Engine &

Returns

oa::Status

The declared return value.

oa::F32 oa::TextAtlas::pxRange()
Zero identifies direct grayscale coverage to the shared glyph shader; positive values remain reserved for a future SDF lowering.

Returns

oa::F32

The declared return value.