public class TextureGlyphProvider extends java.lang.Object implements IGlyphProvider
Modifier and Type | Class and Description |
---|---|
static class |
TextureGlyphProvider.Factory |
(package private) static class |
TextureGlyphProvider.GlyphInfo |
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.chars.Char2ObjectMap<TextureGlyphProvider.GlyphInfo> |
glyphInfos |
private static org.apache.logging.log4j.Logger |
LOGGER |
private NativeImage |
texture |
Constructor and Description |
---|
TextureGlyphProvider(NativeImage nativeImageIn,
it.unimi.dsi.fastutil.chars.Char2ObjectMap<TextureGlyphProvider.GlyphInfo> mapGlyphInfosIn) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
IGlyphInfo |
getGlyphInfo(char character) |
private static final org.apache.logging.log4j.Logger LOGGER
private final NativeImage texture
private final it.unimi.dsi.fastutil.chars.Char2ObjectMap<TextureGlyphProvider.GlyphInfo> glyphInfos
public TextureGlyphProvider(NativeImage nativeImageIn, it.unimi.dsi.fastutil.chars.Char2ObjectMap<TextureGlyphProvider.GlyphInfo> mapGlyphInfosIn)
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface IGlyphProvider
@Nullable public IGlyphInfo getGlyphInfo(char character)
getGlyphInfo
in interface IGlyphProvider