summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/graph/curve/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/jogamp/graph/curve/opengl')
-rw-r--r--src/com/jogamp/graph/curve/opengl/RegionRenderer.java13
-rw-r--r--src/com/jogamp/graph/curve/opengl/TextRenderer.java16
2 files changed, 15 insertions, 14 deletions
diff --git a/src/com/jogamp/graph/curve/opengl/RegionRenderer.java b/src/com/jogamp/graph/curve/opengl/RegionRenderer.java
index dfeff1b55..746eba636 100644
--- a/src/com/jogamp/graph/curve/opengl/RegionRenderer.java
+++ b/src/com/jogamp/graph/curve/opengl/RegionRenderer.java
@@ -14,7 +14,7 @@ import com.jogamp.graph.geom.Vertex;
public abstract class RegionRenderer extends Renderer {
- /** Create a Hardware accelerated Region Renderer
+ /** Create a Hardware accelerated Curve Region Renderer
*/
public static RegionRenderer create(Vertex.Factory<? extends Vertex> factory, int type) {
return new jogamp.graph.curve.opengl.RegionRendererImpl01(factory, type);
@@ -24,7 +24,7 @@ public abstract class RegionRenderer extends Renderer {
super(factory, type);
}
- /** Render an array of Outline shapes combined in one region
+ /** Render an array of {@link OutlineShape}s combined in one region
* at the position provided the triangles of the
* shapes will be generated, if not yet generated
* @param outlineShapes array of OutlineShapes to Render.
@@ -34,7 +34,7 @@ public abstract class RegionRenderer extends Renderer {
*/
public abstract void renderOutlineShapes(GL2ES2 gl, OutlineShape[] outlineShapes, float[] position, int texSize);
- /** Render outline in 3D space at the position provided
+ /** Render an {@link OutlineShape} in 3D space at the position provided
* the triangles of the shapes will be generated, if not yet generated
* @param outlineShape the OutlineShape to Render.
* @param position the initial translation of the outlineShape.
@@ -54,9 +54,9 @@ public abstract class RegionRenderer extends Renderer {
regions.clear();
}
- /**
+ /** Create an ogl {@link Region} defining this {@link OutlineShape}
* @param sharpness parameter for Region generation
- * @return the resulting Region inclusive the generated region
+ * @return the resulting Region.
*/
protected Region createRegion(GL2ES2 gl, OutlineShape outlineShape, float sharpness) {
Region region = RegionFactory.create(gl.getContext(), st, regionType);
@@ -72,7 +72,8 @@ public abstract class RegionRenderer extends Renderer {
return region;
}
- /**
+ /** Create an ogl {@link Region} defining the list of {@link OutlineShape}.
+ * Combining the Shapes into single buffers.
* @param sharpness parameter for Region generation
* @return the resulting Region inclusive the generated region
*/
diff --git a/src/com/jogamp/graph/curve/opengl/TextRenderer.java b/src/com/jogamp/graph/curve/opengl/TextRenderer.java
index 25e8b950f..83f2c93ca 100644
--- a/src/com/jogamp/graph/curve/opengl/TextRenderer.java
+++ b/src/com/jogamp/graph/curve/opengl/TextRenderer.java
@@ -15,6 +15,8 @@ import com.jogamp.graph.geom.Vertex;
public abstract class TextRenderer extends Renderer {
+ protected HashMap<String, GlyphString> strings = new HashMap<String, GlyphString>();
+
/**
* Create a Hardware accelerated Text Renderer.
* @param factory optional Point.Factory for Vertex construction. Default is Vertex.Factory.
@@ -30,7 +32,7 @@ public abstract class TextRenderer extends Renderer {
/** Render the String in 3D space wrt to the font provided at the position provided
* the outlines will be generated, if not yet generated
* @param gl the current GL state
- * @param font font to be used
+ * @param font {@link Font} to be used
* @param str text to be rendered
* @param position the lower left corner of the string
* @param fontSize font size
@@ -40,13 +42,11 @@ public abstract class TextRenderer extends Renderer {
public abstract void renderString3D(GL2ES2 gl, Font font,
String str, float[] position, int fontSize, int texSize);
- protected HashMap<String, GlyphString> strings = new HashMap<String, GlyphString>();
-
- /**
- *
- * @param font
- * @param size
- * @param str
+ /**Create the resulting {@link GlyphString} that represents
+ * the String wrt to the font.
+ * @param font {@link Font} to be used
+ * @param size font size
+ * @param str {@link String} to be created
* @param sharpness parameter for Region generation of the resulting GlyphString
* @return the resulting GlyphString inclusive the generated region
*/