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 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/com') 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(); -- cgit v1.2.3