GLRegion Utility Class
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DEFAULT_CACHE_LIMIT
Default cache limit, see |
| public final int | |
| private final ArrayList | |
| private int | |
| private final HashMap | |
| public final AffineTransform | |
| public final AffineTransform |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | addCachedRegion(final GL2ES2 gl, final Font font, final CharSequence str, final float pixelSize, final int special, final GLRegion glyphString)
|
| public static void | addStringToRegion(final GLRegion
the region, final Vertex.GLRegion sinkvertex impl factory vertexFactory,Factorythe target font, final float FontUse pixelSize, final CharSequence Font#getPixelSize(float, float) for resolution correct pixel-size.string text str, final float[] if rgbaColor, final AffineTransform Region#hasColorChannel() RGBA color must be passed, otherwise value is ignored.temporary AffineTransform storage, mandatory temp1, final AffineTransform temporary AffineTransform storage, mandatory temp2)Add the string in 3D space w.r.t. the font and pixelSize at the end of the |
| public void | |
| public void | drawString3D(final GL2ES2
the current GL state gl, final RegionRenderer TODO renderer, final Font Font to be usedUse pixelSize, final CharSequence Font#getPixelSize(float, float) for resolution correct pixel-size.text to be rendered str, final float[] if rgbaColor, final int[] Region#hasColorChannel() RGBA color must be passed, otherwise value is ignored.desired multisampling sample count for msaa-rendering.
The actual used scample-count is written back when msaa-rendering is enabled, otherwise the store is untouched. sampleCount)Render the string in 3D space w.r.t. the font and pixelSize
using a cached |
| public static void | drawString3D(final GL2ES2
the current GL state gl, final int TODO renderModes, final RegionRenderer renderer, final Font Font to be usedUse pixelSize, final CharSequence Font#getPixelSize(float, float) for resolution correct pixel-size.text to be rendered str, final float[] if rgbaColor, final int[] Region#hasColorChannel() RGBA color must be passed, otherwise value is ignored.desired multisampling sample count for msaa-rendering.
The actual used scample-count is written back when msaa-rendering is enabled, otherwise the store is untouched. sampleCount, final AffineTransform temporary AffineTransform storage, mandatory temp1, final AffineTransform temporary AffineTransform storage, mandatory temp2)Render the string in 3D space w.r.t. the font and pixelSize
using a temporary |
| public static void | drawString3D(final GL2ES2
the current GL state gl, final GLRegion region, final RegionRenderer renderer, final Font Font to be usedUse pixelSize, final CharSequence Font#getPixelSize(float, float) for resolution correct pixel-size.text to be rendered str, final float[] if rgbaColor, final int[] Region#hasColorChannel() RGBA color must be passed, otherwise value is ignored.desired multisampling sample count for msaa-rendering.
The actual used scample-count is written back when msaa-rendering is enabled, otherwise the store is untouched. sampleCount, final AffineTransform temporary AffineTransform storage, mandatory temp1, final AffineTransform temporary AffineTransform storage, mandatory temp2)Render the string in 3D space w.r.t. the font and pixelSize
using the given |
| protected final GLRegion | |
| public final int | |
| public final int | |
| public static int | |
| protected final String | |
| public static void | processString(final TextRegionUtil.
optional given transform transform, final Font the target font, final float FontUse pixelSize, final CharSequence Font#getPixelSize(float, float) for resolution correct pixel-size.string text str, final AffineTransform temporary AffineTransform storage, mandatory, will be passed to temp1, final AffineTransform ShapeVisitor#visit(OutlineShape, AffineTransform) and can be modified.temporary AffineTransform storage, mandatory, can be re-used in temp2)ShapeVisitor#visit(OutlineShape, AffineTransform) by user code.Visit each |
| protected final void | removeCachedRegion(final GL2ES2 gl, final Font font, final CharSequence str, final int pixelSize, final int special)
|
| protected final void | |
| public final void | setCacheLimit(final int
new cache size newLimit)Sets the cache limit for reusing GlyphString's and their Region. |
| public final void | setCacheLimit(final GL2ES2
current GL used to remove cached objects if required gl, final int new cache size newLimit)Sets the cache limit, see |
| protected final void |
| DEFAULT_CACHE_LIMIT | back to summary |
|---|---|
| public static final int DEFAULT_CACHE_LIMIT Default cache limit, see | |
| renderModes | back to summary |
|---|---|
| public final int renderModes | |
| stringCacheArray | back to summary |
|---|---|
| private final ArrayList<String> stringCacheArray | |
| stringCacheLimit | back to summary |
|---|---|
| private int stringCacheLimit | |
| stringCacheMap | back to summary |
|---|---|
| private final HashMap<String, GLRegion> stringCacheMap | |
| tempT1 | back to summary |
|---|---|
| public final AffineTransform tempT1 | |
| tempT2 | back to summary |
|---|---|
| public final AffineTransform tempT2 | |
| TextRegionUtil | back to summary |
|---|---|
| public TextRegionUtil(final int renderModes) | |
| addCachedRegion | back to summary |
|---|---|
| protected final void addCachedRegion(final GL2ES2 gl, final Font font, final CharSequence str, final float pixelSize, final int special, final GLRegion glyphString) | |
| addStringToRegion | back to summary |
|---|---|
| public static void addStringToRegion(final GLRegion region, final Vertex. Add the string in 3D space w.r.t. the font and pixelSize at the end of the
| |
| clear | back to summary |
|---|---|
| public void clear(final GL2ES2 gl) Clear all cached | |
| drawString3D | back to summary |
|---|---|
| public void drawString3D(final GL2ES2 gl, final RegionRenderer renderer, final Font font, final float pixelSize, final CharSequence str, final float[] rgbaColor, final int[] sampleCount) Render the string in 3D space w.r.t. the font and pixelSize
using a cached
Cached
| |
| drawString3D | back to summary |
|---|---|
| public static void drawString3D(final GL2ES2 gl, final int renderModes, final RegionRenderer renderer, final Font font, final float pixelSize, final CharSequence str, final float[] rgbaColor, final int[] sampleCount, final AffineTransform temp1, final AffineTransform temp2) Render the string in 3D space w.r.t. the font and pixelSize
using a temporary
In case of a multisampling region renderer, i.e.
| |
| drawString3D | back to summary |
|---|---|
| public static void drawString3D(final GL2ES2 gl, final GLRegion region, final RegionRenderer renderer, final Font font, final float pixelSize, final CharSequence str, final float[] rgbaColor, final int[] sampleCount, final AffineTransform temp1, final AffineTransform temp2) Render the string in 3D space w.r.t. the font and pixelSize
using the given
| |
| getCachedRegion | back to summary |
|---|---|
| protected final GLRegion getCachedRegion(final Font font, final CharSequence str, final float pixelSize, final int special) | |
| getCacheLimit | back to summary |
|---|---|
public final int getCacheLimit()
| |
| getCacheSize | back to summary |
|---|---|
public final int getCacheSize()
| |
| getCharCount | back to summary |
|---|---|
| public static int getCharCount(final String s, final char c) | |
| getKey | back to summary |
|---|---|
| protected final String getKey(final Font font, final CharSequence str, final float pixelSize, final int special) | |
| processString | back to summary |
|---|---|
| public static void processString(final TextRegionUtil. Visit each
| |
| removeCachedRegion | back to summary |
|---|---|
| protected final void removeCachedRegion(final GL2ES2 gl, final Font font, final CharSequence str, final int pixelSize, final int special) | |
| removeCachedRegion | back to summary |
|---|---|
| protected final void removeCachedRegion(final GL2ES2 gl, final int idx) | |
| setCacheLimit | back to summary |
|---|---|
| public final void setCacheLimit(final int newLimit) Sets the cache limit for reusing GlyphString's and their Region.
Default is The cache will be validate when the next string rendering happens.
| |
| setCacheLimit | back to summary |
|---|---|
| public final void setCacheLimit(final GL2ES2 gl, final int newLimit) Sets the cache limit, see
| |
| validateCache | back to summary |
|---|---|
| protected final void validateCache(final GL2ES2 gl, final int space) | |
| Modifier and Type | Method and Description |
|---|---|
| public void | visit(final OutlineShape
may be used as is, otherwise a copy shall be made if intended to be modified. shape, final AffineTransform may be used immediately as is, otherwise a copy shall be made if stored. t)Visiting the given |
| visit | back to summary |
|---|---|
| public void visit(final OutlineShape shape, final AffineTransform t) Visiting the given
| |