@Environment(value=CLIENT) public class GlyphAtlasTexture extends AbstractTexture
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GlyphAtlasTexture.Slot |
Modifier and Type | Field and Description |
---|---|
private boolean |
hasColor |
private Identifier |
id |
private GlyphAtlasTexture.Slot |
rootSlot |
private RenderLayer |
seeThroughTextLayer |
private RenderLayer |
textLayer |
bilinear, glId, mipmap
Constructor and Description |
---|
GlyphAtlasTexture(Identifier id,
boolean hasColor) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
GlyphRenderer |
getGlyphRenderer(RenderableGlyph glyph) |
Identifier |
getId() |
void |
load(ResourceManager manager) |
bindTexture, clearGlId, getGlId, registerTexture, setFilter
private final Identifier id
private final RenderLayer textLayer
private final RenderLayer seeThroughTextLayer
private final boolean hasColor
private final GlyphAtlasTexture.Slot rootSlot
public GlyphAtlasTexture(Identifier id, boolean hasColor)
public void load(ResourceManager manager)
load
in class AbstractTexture
public void close()
close
in interface AutoCloseable
close
in class AbstractTexture
@Nullable public GlyphRenderer getGlyphRenderer(RenderableGlyph glyph)
public Identifier getId()