MCPcopy
hub / github.com/EngoEngine/engo / GenerateFontAtlas

Method GenerateFontAtlas

common/font.go:304–306  ·  view source on GitHub ↗

GenerateFontAtlas generates the font atlas for this given font, using the first `c` Unicode characters. This should only be used if you are writing your own custom text shader.

(c int)

Source from the content-addressed store, hash-verified

302// GenerateFontAtlas generates the font atlas for this given font, using the first `c` Unicode characters.
303// This should only be used if you are writing your own custom text shader.
304func (f *Font) GenerateFontAtlas(c int) FontAtlas {
305 return f.generateFontAtlas(c)
306}
307
308// A FontAtlas is a representation of some of the Font characters, as an image
309type FontAtlas struct {

Callers

nothing calls this directly

Calls 1

generateFontAtlasMethod · 0.95

Tested by

no test coverage detected