diff options
author | Sven Gothel <[email protected]> | 2014-02-23 14:51:06 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-02-23 14:51:06 +0100 |
commit | 3352601e0860584509adf2b76f993d03893ded4b (patch) | |
tree | 974fccc8c0eb2f5ad9d4ffd741dfc35869ed67b5 /src/jogl/classes/com/jogamp/graph/curve/Region.java | |
parent | f51933f0ebe9ae030c26c066e59a728ce08b8559 (diff) | |
parent | c67de337a8aaf52e36104c3f13e273aa19d21f1f (diff) |
Merge branch 'master' into stash_glyphcache
Conflicts:
make/scripts/tests.sh
src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
src/jogl/classes/com/jogamp/graph/curve/Region.java
src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java
src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java
src/jogl/classes/com/jogamp/graph/curve/opengl/Renderer.java
src/jogl/classes/com/jogamp/graph/curve/opengl/TextRenderer.java
src/jogl/classes/com/jogamp/graph/font/Font.java
src/jogl/classes/com/jogamp/opengl/math/VectorUtil.java
src/jogl/classes/jogamp/graph/curve/text/GlyphShape.java
src/jogl/classes/jogamp/graph/curve/text/GlyphString.java
src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java
src/jogl/classes/jogamp/graph/font/typecast/TypecastGlyph.java
src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/curve/Region.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/Region.java | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/Region.java b/src/jogl/classes/com/jogamp/graph/curve/Region.java index f7f51758b..e36e37c26 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/Region.java +++ b/src/jogl/classes/com/jogamp/graph/curve/Region.java @@ -34,13 +34,13 @@ import jogamp.graph.curve.opengl.RegionFactory; import jogamp.opengl.Debug; import com.jogamp.graph.curve.opengl.GLRegion; -import com.jogamp.graph.geom.AABBox; import com.jogamp.graph.geom.Triangle; import com.jogamp.graph.geom.Vertex; +import com.jogamp.opengl.math.geom.AABBox; /** Abstract Outline shape GL representation define the method an OutlineShape(s) * is bound and rendered. - * + * * @see GLRegion */ public abstract class Region { @@ -73,7 +73,7 @@ public abstract class Region { } /** Check if render mode capable of non uniform weights - * + * * @param renderModes * bit-field of modes, e.g. * {@link Region#VARIABLE_CURVE_WEIGHT_BIT}, @@ -93,7 +93,7 @@ public abstract class Region { return region; } - /** + /** * Create a {@link Region} defining this {@link OutlineShape} * @return the resulting Region. */ @@ -101,28 +101,28 @@ public abstract class Region { final Region region = RegionFactory.create(renderModes); region.addOutlineShape(outlineShape); return region; - } - + } + protected Region(int regionRenderModes) { this.renderModes = regionRenderModes; } /** Get current Models - * + * * @return bit-field of render modes */ public final int getRenderModes() { return renderModes; } /** Check if current Region is using VBAA - * + * * @return true if capable of two pass rendering - VBAA */ public boolean isVBAA() { return Region.isVBAA(renderModes); } /** Check if current instance uses non uniform weights - * + * * @return true if capable of nonuniform weights */ public boolean isNonUniformWeight() { return Region.isNonUniformWeight(renderModes); @@ -130,7 +130,7 @@ public abstract class Region { /** Get the current number of vertices associated with this region. This * number is not necessary equal to the OGL bound number of vertices. - * + * * @return vertices count */ public final int getNumVertices() { return numVertices; @@ -138,10 +138,10 @@ public abstract class Region { /** Adds a {@link Triangle} object to the Region This triangle will be bound * to OGL objects on the next call to {@code update} - * + * * @param tri * a triangle object - * + * * @see update(GL2ES2) */ public void addTriangle(Triangle tri) { triangles.add(tri); @@ -150,10 +150,10 @@ public abstract class Region { /** Adds a list of {@link Triangle} objects to the Region These triangles are * to be binded to OGL objects on the next call to {@code update} - * + * * @param tris * a list of triangle objects - * + * * @see update(GL2ES2) */ public void addTriangles(List<Triangle> tris) { triangles.addAll(tris); @@ -162,10 +162,10 @@ public abstract class Region { /** Adds a {@link Vertex} object to the Region This vertex will be bound to * OGL objects on the next call to {@code update} - * + * * @param vert * a vertex objects - * + * * @see update(GL2ES2) */ public void addVertex(Vertex vert) { vertices.add(vert); @@ -175,10 +175,10 @@ public abstract class Region { /** Adds a list of {@link Vertex} objects to the Region These vertices are to * be binded to OGL objects on the next call to {@code update} - * + * * @param verts * a list of vertex objects - * + * * @see update(GL2ES2) */ public void addVertices(List<Vertex> verts) { vertices.addAll(verts); @@ -202,7 +202,7 @@ public abstract class Region { } setDirty(true); } - + public void addOutlineShapes(List<OutlineShape> shapes) { for (int i = 0; i < shapes.size(); i++) { addOutlineShape(shapes.get(i)); @@ -217,9 +217,9 @@ public abstract class Region { /** Check if this region is dirty. A region is marked dirty when new * Vertices, Triangles, and or Lines are added after a call to update() - * + * * @return true if region is Dirty, false otherwise - * + * * @see update(GL2ES2) */ public final boolean isDirty() { return dirty; |