Package icyllis.arc3d.granite
Class GlyphAtlasManager
java.lang.Object
icyllis.arc3d.granite.DrawAtlas.AtlasGenerationCounter
icyllis.arc3d.granite.GlyphAtlasManager
- All Implemented Interfaces:
AutoCloseable
Manages all baked glyphs and their texture atlases for raster text rendering.
-
Field Summary
Fields inherited from class icyllis.arc3d.granite.DrawAtlas.AtlasGenerationCounter
INVALID_GENERATION, MAX_GENERATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGlyphAndSetLastUseToken(DrawAtlas.PlotBulkUseUpdater updater, BakedGlyph glyph, int maskFormat, long token) intaddGlyphToAtlas(Glyph glyph, BakedGlyph bakedGlyph) voidclose()voidcompact()voidlonggetAtlasGeneration(int maskFormat) getCurrentTexture(int maskFormat) booleanhasGlyph(int maskFormat, BakedGlyph glyph) booleaninitAtlas(int maskFormat) Initialize atlas if not.voidpurge()booleanvoidsetLastUseTokenBulk(int maskFormat, DrawAtlas.PlotBulkUseUpdater updater, long token) Methods inherited from class icyllis.arc3d.granite.DrawAtlas.AtlasGenerationCounter
next
-
Constructor Details
-
GlyphAtlasManager
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
initAtlas
public boolean initAtlas(int maskFormat) Initialize atlas if not. This function *must* be called first, before other functions which use the atlas. -
getCurrentTexture
-
hasGlyph
-
addGlyphToAtlas
-
addGlyphAndSetLastUseToken
public void addGlyphAndSetLastUseToken(@Nonnull DrawAtlas.PlotBulkUseUpdater updater, @Nonnull BakedGlyph glyph, int maskFormat, long token) -
getAtlasGeneration
public long getAtlasGeneration(int maskFormat) -
setLastUseTokenBulk
-
recordUploads
-
evictAtlases
public void evictAtlases() -
compact
public void compact() -
purge
public void purge()
-