diff options
author | Sven Gothel <[email protected]> | 2011-03-30 07:26:56 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-03-30 07:26:56 +0200 |
commit | 4644863fbf6e8223b7843c63f9c5466f34fc8eeb (patch) | |
tree | 5852882b24faee76c7860688da98e23daa078721 /src/com/jogamp/graph | |
parent | dbcd775a7763ca131280a8341775fdfa50c4f909 (diff) |
Relocate Hw*Renderer -> opengl subpackage
Diffstat (limited to 'src/com/jogamp/graph')
-rwxr-xr-x | src/com/jogamp/graph/curve/opengl/HwRegionRenderer.java (renamed from src/com/jogamp/graph/curve/HwRegionRenderer.java) | 5 | ||||
-rw-r--r-- | src/com/jogamp/graph/curve/opengl/HwTextRenderer.java (renamed from src/com/jogamp/graph/curve/HwTextRenderer.java) | 13 | ||||
-rw-r--r-- | src/com/jogamp/graph/curve/opengl/shader/curverenderer.fp (renamed from src/com/jogamp/graph/curve/shader/curverenderer.fp) | 0 | ||||
-rw-r--r-- | src/com/jogamp/graph/curve/opengl/shader/curverenderer.vp (renamed from src/com/jogamp/graph/curve/shader/curverenderer.vp) | 0 |
4 files changed, 8 insertions, 10 deletions
diff --git a/src/com/jogamp/graph/curve/HwRegionRenderer.java b/src/com/jogamp/graph/curve/opengl/HwRegionRenderer.java index 2caa6bb7e..9fa67a0be 100755 --- a/src/com/jogamp/graph/curve/HwRegionRenderer.java +++ b/src/com/jogamp/graph/curve/opengl/HwRegionRenderer.java @@ -25,7 +25,7 @@ * authors and should not be interpreted as representing official policies, either expressed
* or implied, of JogAmp Community.
*/
-package com.jogamp.graph.curve;
+package com.jogamp.graph.curve.opengl;
import java.nio.FloatBuffer;
import java.util.ArrayList;
@@ -39,6 +39,9 @@ import javax.media.opengl.GLException; import javax.media.opengl.GLUniformData;
import javax.media.opengl.fixedfunc.GLMatrixFunc;
+import com.jogamp.graph.curve.OutlineShape;
+import com.jogamp.graph.curve.Region;
+import com.jogamp.graph.curve.RegionFactory;
import com.jogamp.graph.geom.Triangle;
import com.jogamp.graph.geom.Vertex;
diff --git a/src/com/jogamp/graph/curve/HwTextRenderer.java b/src/com/jogamp/graph/curve/opengl/HwTextRenderer.java index f3a15975a..f9a104ad0 100644 --- a/src/com/jogamp/graph/curve/HwTextRenderer.java +++ b/src/com/jogamp/graph/curve/opengl/HwTextRenderer.java @@ -25,7 +25,7 @@ * authors and should not be interpreted as representing official policies, either expressed * or implied, of JogAmp Community. */ -package com.jogamp.graph.curve; +package com.jogamp.graph.curve.opengl; import java.nio.FloatBuffer; import java.util.HashMap; @@ -41,6 +41,7 @@ import jogamp.graph.font.FontInt; import jogamp.graph.geom.plane.AffineTransform; import jogamp.graph.geom.plane.Path2D; +import com.jogamp.graph.curve.Region; import com.jogamp.graph.font.Font; import com.jogamp.graph.geom.Vertex; import com.jogamp.graph.geom.opengl.SVertex; @@ -193,7 +194,7 @@ public class HwTextRenderer { public void dispose(GL2ES2 gl) { st.destroy(gl); - clearCached(); + flushCash(); } public float getAlpha() { @@ -310,12 +311,6 @@ public class HwTextRenderer { } - public void enable(GL2ES2 gl, boolean enable) { - if(null != gl) { - st.glUseProgram(gl, enable); - } - } - /** 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 font font to be used @@ -347,7 +342,7 @@ public class HwTextRenderer { /** Clears the cached string curves * and destorys underlying buffers */ - public void clearCached() { + public void flushCash() { Iterator<GlyphString> iterator = strings.values().iterator(); while(iterator.hasNext()){ GlyphString glyphString = iterator.next(); diff --git a/src/com/jogamp/graph/curve/shader/curverenderer.fp b/src/com/jogamp/graph/curve/opengl/shader/curverenderer.fp index 2b3a0ce1d..2b3a0ce1d 100644 --- a/src/com/jogamp/graph/curve/shader/curverenderer.fp +++ b/src/com/jogamp/graph/curve/opengl/shader/curverenderer.fp diff --git a/src/com/jogamp/graph/curve/shader/curverenderer.vp b/src/com/jogamp/graph/curve/opengl/shader/curverenderer.vp index bc9ecb41e..bc9ecb41e 100644 --- a/src/com/jogamp/graph/curve/shader/curverenderer.vp +++ b/src/com/jogamp/graph/curve/opengl/shader/curverenderer.vp |