| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| public static final int | |
| private final List | |
| private final int | |
| private final int | |
| public static FontRenderContext | |
| pack-priv Array | |
| private static final ByteBuffer | |
| pack-priv static Graphics2D | |
| private static final BufferedImage | |
| private static final IntBuffer | |
| private final Texture | |
| private final UnicodeFont |
| Access | Constructor and Description |
|---|---|
| pack-priv | GlyphPage(UnicodeFont unicodeFont, int
The width of the backing texture. pageWidth, int The height of the backing texture. pageHeight)
|
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public Texture | |
| pack-priv int | Returns: The number of glyphs that were actually loaded.The glyphs to load. glyphs, int This is the maximum number of glyphs to load from the list. Set to -1 to attempt to load all the
glyphs. maxGlyphsToLoad)Loads glyphs to the backing texture and sets the image on each loaded glyph. |
| private boolean | renderGlyph(Glyph glyph, int pageX, int pageY, int width, int height)
Loads a single glyph to the backing texture, if it fits. |
| hashes | back to summary |
|---|---|
| private final List<String> hashes | |
| MAX_GLYPH_SIZE | back to summary |
|---|---|
| public static final int MAX_GLYPH_SIZE | |
| pageGlyphs | back to summary |
|---|---|
| private final List<Glyph> pageGlyphs | |
| pageHeight | back to summary |
|---|---|
| private final int pageHeight | |
| pageWidth | back to summary |
|---|---|
| private final int pageWidth | |
| renderContext | back to summary |
|---|---|
| public static FontRenderContext renderContext | |
| rows | back to summary |
|---|---|
| pack-priv Array<GlyphPage. | |
| scratchByteBuffer | back to summary |
|---|---|
| private static final ByteBuffer scratchByteBuffer | |
| scratchGraphics | back to summary |
|---|---|
| pack-priv static Graphics2D scratchGraphics | |
| scratchImage | back to summary |
|---|---|
| private static final BufferedImage scratchImage | |
| scratchIntBuffer | back to summary |
|---|---|
| private static final IntBuffer scratchIntBuffer | |
| texture | back to summary |
|---|---|
| private final Texture texture | |
| unicodeFont | back to summary |
|---|---|
| private final UnicodeFont unicodeFont | |
| GlyphPage | back to summary |
|---|---|
pack-priv GlyphPage(UnicodeFont unicodeFont, int pageWidth, int pageHeight)
| |
| getGlyphs | back to summary |
|---|---|
| public List Returns the glyphs stored on this page. | |
| getTexture | back to summary |
|---|---|
| public Texture getTexture() Returns the backing texture for this page. | |
| loadGlyphs | back to summary |
|---|---|
| pack-priv int loadGlyphs(List<E> glyphs, int maxGlyphsToLoad) Loads glyphs to the backing texture and sets the image on each loaded glyph. Loaded glyphs are removed from the list. If this page already has glyphs and maxGlyphsToLoad is -1, then this method will return 0 if all the new glyphs don't fit. This reduces texture binds when drawing since glyphs loaded at once are typically displayed together.
| |
| renderGlyph | back to summary |
|---|---|
| private boolean renderGlyph(Glyph glyph, int pageX, int pageY, int width, int height) Loads a single glyph to the backing texture, if it fits. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| height | back to summary |
|---|---|
| pack-priv int height | |
| x | back to summary |
|---|---|
| pack-priv int x | |
| y | back to summary |
|---|---|
| pack-priv int y | |
| Row | back to summary |
|---|---|
| pack-priv Row() | |