From 37224b6c84a66788813856f806a727d73991f546 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 19 Mar 2023 08:13:11 +0100 Subject: Graph UI: Adopt Shape implementations to Shape API changes (simplification) --- .../jogamp/opengl/demos/graph/ui/testshapes/Glyph01UbuntuLight_o.java | 4 ++-- .../opengl/demos/graph/ui/testshapes/Glyph02UbuntuLight_ae.java | 4 ++-- .../opengl/demos/graph/ui/testshapes/Glyph03FreeMonoRegular_M.java | 4 ++-- .../jogamp/opengl/demos/graph/ui/testshapes/Glyph04FreeSans_0.java | 4 ++-- .../demos/graph/ui/testshapes/Glyph05FreeSerifBoldItalic_ae.java | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/demos/com/jogamp/opengl') diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph01UbuntuLight_o.java b/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph01UbuntuLight_o.java index 4171eeda8..d9db96332 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph01UbuntuLight_o.java +++ b/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph01UbuntuLight_o.java @@ -56,8 +56,8 @@ public class Glyph01UbuntuLight_o extends Shape { @SuppressWarnings("unused") @Override - protected void addShapeToRegion(final GL2ES2 gl, final RegionRenderer renderer) { - final OutlineShape shape = new OutlineShape(renderer.getRenderState().getVertexFactory()); + protected void addShapeToRegion() { + final OutlineShape shape = new OutlineShape(vertexFactory); // Ubuntu-Light, lower case 'o' // Start TTF Shape for Glyph 82 diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph02UbuntuLight_ae.java b/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph02UbuntuLight_ae.java index 28d6f6390..6113756a7 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph02UbuntuLight_ae.java +++ b/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph02UbuntuLight_ae.java @@ -55,8 +55,8 @@ public class Glyph02UbuntuLight_ae extends Shape { @SuppressWarnings("unused") @Override - protected void addShapeToRegion(final GL2ES2 gl, final RegionRenderer renderer) { - final OutlineShape shape = new OutlineShape(renderer.getRenderState().getVertexFactory()); + protected void addShapeToRegion() { + final OutlineShape shape = new OutlineShape(vertexFactory); // Ubuntu-Light, lower case 'æ' diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph03FreeMonoRegular_M.java b/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph03FreeMonoRegular_M.java index 45868762c..a4e342ff5 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph03FreeMonoRegular_M.java +++ b/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph03FreeMonoRegular_M.java @@ -55,8 +55,8 @@ public class Glyph03FreeMonoRegular_M extends Shape { @SuppressWarnings("unused") @Override - protected void addShapeToRegion(final GL2ES2 gl, final RegionRenderer renderer) { - final OutlineShape shape = new OutlineShape(renderer.getRenderState().getVertexFactory()); + protected void addShapeToRegion() { + final OutlineShape shape = new OutlineShape(vertexFactory); if( false ) { // Start TTF Shape for Glyph 48 diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph04FreeSans_0.java b/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph04FreeSans_0.java index 63bc0b5b5..05624e7bd 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph04FreeSans_0.java +++ b/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph04FreeSans_0.java @@ -54,8 +54,8 @@ public class Glyph04FreeSans_0 extends Shape { } @Override - protected void addShapeToRegion(final GL2ES2 gl, final RegionRenderer renderer) { - final OutlineShape shape = new OutlineShape(renderer.getRenderState().getVertexFactory()); + protected void addShapeToRegion() { + final OutlineShape shape = new OutlineShape(vertexFactory); // Start TTF Shape for Glyph 19 // 000: B0a: move-to p0 diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph05FreeSerifBoldItalic_ae.java b/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph05FreeSerifBoldItalic_ae.java index dd92228ff..8a3594d58 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph05FreeSerifBoldItalic_ae.java +++ b/src/demos/com/jogamp/opengl/demos/graph/ui/testshapes/Glyph05FreeSerifBoldItalic_ae.java @@ -54,8 +54,8 @@ public class Glyph05FreeSerifBoldItalic_ae extends Shape { } @Override - protected void addShapeToRegion(final GL2ES2 gl, final RegionRenderer renderer) { - final OutlineShape shape = new OutlineShape(renderer.getRenderState().getVertexFactory()); + protected void addShapeToRegion() { + final OutlineShape shape = new OutlineShape(vertexFactory); // Start TTF Shape for Glyph 168 // 000: B0a: move-to p0 -- cgit v1.2.3