summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRami Santina <[email protected]>2011-03-30 16:17:09 +0300
committerRami Santina <[email protected]>2011-03-30 16:17:09 +0300
commit133edeb70921dbcae3ec7cc76f1bc6dd0cd36da8 (patch)
tree1ae603def1e3b6fbf73056d7662a6dfae299ad5e /src
parent16eded9de9721634a929c9aa829aece0df8fa8a6 (diff)
Fix: RegionRenderer TwoPass Renderering, fix methodnames in Renderer
Diffstat (limited to 'src')
-rw-r--r--src/com/jogamp/graph/curve/opengl/RegionRenderer.java2
-rw-r--r--src/com/jogamp/graph/curve/opengl/Renderer.java4
-rw-r--r--src/com/jogamp/graph/curve/opengl/TextRenderer.java2
-rw-r--r--src/jogamp/graph/curve/opengl/VBORegion2PGL3.java8
4 files changed, 10 insertions, 6 deletions
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<Integer, Region> regions = new HashMap<Integer, Region>();
- public void flushCash() {
+ public void flushCache() {
Iterator<Region> 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<GlyphString> 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();