public class OGLTextRenderer extends TextRenderer
TextRenderer.DefaultRenderDelegate, TextRenderer.RenderDelegate
Modifier and Type | Field and Description |
---|---|
protected static boolean |
DEFAULT_ANTIALIAS |
protected static Font |
DEFAULT_FONT |
protected static boolean |
DEFAULT_MIPMAP |
protected static boolean |
DEFAULT_SMOOTHING |
protected static boolean |
DEFAULT_USE_FRACTIONAL_METRICS |
protected static boolean |
DEFAULT_USE_VERTEX_ARRAYS |
Constructor and Description |
---|
OGLTextRenderer() |
OGLTextRenderer(Font font) |
OGLTextRenderer(Font font,
boolean mipmap) |
OGLTextRenderer(Font font,
boolean antialiased,
boolean useFractionalMetrics) |
OGLTextRenderer(Font font,
boolean antialiased,
boolean useFractionalMetrics,
TextRenderer.RenderDelegate renderDelegate) |
OGLTextRenderer(Font font,
boolean antialiased,
boolean useFractionalMetrics,
TextRenderer.RenderDelegate renderDelegate,
boolean mipmap) |
Modifier and Type | Method and Description |
---|---|
static TextRenderer |
getOrCreateTextRenderer(TextRendererCache cache,
Font font) |
static TextRenderer |
getOrCreateTextRenderer(TextRendererCache cache,
Font font,
boolean antialiased,
boolean useFractionalMetrics,
boolean mipmap) |
protected void |
initialize() |
begin3DRendering, beginRendering, beginRendering, dispose, draw, draw, draw3D, draw3D, end3DRendering, endRendering, flush, getBounds, getBounds, getCharWidth, getFont, getFontRenderContext, getSmoothing, getUseVertexArrays, setColor, setColor, setSmoothing, setUseVertexArrays
protected static final boolean DEFAULT_ANTIALIAS
protected static final Font DEFAULT_FONT
protected static final boolean DEFAULT_MIPMAP
protected static final boolean DEFAULT_SMOOTHING
protected static final boolean DEFAULT_USE_FRACTIONAL_METRICS
protected static final boolean DEFAULT_USE_VERTEX_ARRAYS
public OGLTextRenderer()
public OGLTextRenderer(Font font)
public OGLTextRenderer(Font font, boolean mipmap)
public OGLTextRenderer(Font font, boolean antialiased, boolean useFractionalMetrics)
public OGLTextRenderer(Font font, boolean antialiased, boolean useFractionalMetrics, TextRenderer.RenderDelegate renderDelegate)
public OGLTextRenderer(Font font, boolean antialiased, boolean useFractionalMetrics, TextRenderer.RenderDelegate renderDelegate, boolean mipmap)
public static TextRenderer getOrCreateTextRenderer(TextRendererCache cache, Font font)
public static TextRenderer getOrCreateTextRenderer(TextRendererCache cache, Font font, boolean antialiased, boolean useFractionalMetrics, boolean mipmap)
protected void initialize()