From 133edeb70921dbcae3ec7cc76f1bc6dd0cd36da8 Mon Sep 17 00:00:00 2001 From: Rami Santina Date: Wed, 30 Mar 2011 16:17:09 +0300 Subject: Fix: RegionRenderer TwoPass Renderering, fix methodnames in Renderer --- src/com/jogamp/graph/curve/opengl/RegionRenderer.java | 2 +- src/com/jogamp/graph/curve/opengl/Renderer.java | 4 ++-- src/com/jogamp/graph/curve/opengl/TextRenderer.java | 2 +- src/jogamp/graph/curve/opengl/VBORegion2PGL3.java | 8 ++++++-- 4 files changed, 10 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/com/jogamp/graph/curve/opengl/RegionRenderer.java b/src/com/jogamp/graph/curve/opengl/RegionRenderer.java index 4be1506d5..a1d888da9 100644 --- a/src/com/jogamp/graph/curve/opengl/RegionRenderer.java +++ b/src/com/jogamp/graph/curve/opengl/RegionRenderer.java @@ -45,7 +45,7 @@ public abstract class RegionRenderer extends Renderer { protected HashMap regions = new HashMap(); - public void flushCash() { + public void flushCache() { Iterator iterator = regions.values().iterator(); while(iterator.hasNext()){ Region region = iterator.next(); diff --git a/src/com/jogamp/graph/curve/opengl/Renderer.java b/src/com/jogamp/graph/curve/opengl/Renderer.java index a1755e003..a36cf870b 100644 --- a/src/com/jogamp/graph/curve/opengl/Renderer.java +++ b/src/com/jogamp/graph/curve/opengl/Renderer.java @@ -22,7 +22,7 @@ public abstract class Renderer { /** * Flushes all cached data */ - public abstract void flushCash(); + public abstract void flushCache(); public abstract float getAlpha(); @@ -93,7 +93,7 @@ public abstract class Renderer { } disposeImpl(gl); st.destroy(gl); - flushCash(); + flushCache(); initialized = false; } diff --git a/src/com/jogamp/graph/curve/opengl/TextRenderer.java b/src/com/jogamp/graph/curve/opengl/TextRenderer.java index 04988a3ab..25e8b950f 100644 --- a/src/com/jogamp/graph/curve/opengl/TextRenderer.java +++ b/src/com/jogamp/graph/curve/opengl/TextRenderer.java @@ -68,7 +68,7 @@ public abstract class TextRenderer extends Renderer { return font.getName() + "." + str.hashCode() + "." + fontSize; } - public void flushCash() { + public void flushCache() { Iterator iterator = strings.values().iterator(); while(iterator.hasNext()){ GlyphString glyphString = iterator.next(); diff --git a/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java b/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java index baca05dc7..ac2be6097 100644 --- a/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java +++ b/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java @@ -121,8 +121,12 @@ public class VBORegion2PGL3 implements Region{ verticesBuffer.put(v.getY()); } verticesBuffer.put(v.getZ()); - - box.resize(v.getX(), -1*v.getY(), v.getZ()); + if(flipped){ + box.resize(v.getX(), -1*v.getY(), v.getZ()); + } + else{ + box.resize(v.getX(), v.getY(), v.getZ()); + } } verticesBuffer.rewind(); -- cgit v1.2.3