diff options
Diffstat (limited to 'src/graphui/classes/com')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/GraphShape.java | 2 | ||||
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/Scene.java | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/GraphShape.java b/src/graphui/classes/com/jogamp/graph/ui/GraphShape.java index f0329ad3c..2c724fa52 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/GraphShape.java +++ b/src/graphui/classes/com/jogamp/graph/ui/GraphShape.java @@ -154,7 +154,7 @@ public abstract class GraphShape extends Shape { @Override protected final void drawImpl0(final GL2ES2 gl, final RegionRenderer renderer, final int[] sampleCount, final Vec4f rgba) { if( null != rgba ) { - renderer.getRenderState().setColorStatic(rgba); + renderer.setColorStatic(rgba); } region.draw(gl, renderer, sampleCount); } diff --git a/src/graphui/classes/com/jogamp/graph/ui/Scene.java b/src/graphui/classes/com/jogamp/graph/ui/Scene.java index c501b8eb8..5100aabf7 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/Scene.java +++ b/src/graphui/classes/com/jogamp/graph/ui/Scene.java @@ -161,9 +161,6 @@ public final class Scene implements Container, GLEventListener { /** Returns the associated RegionRenderer */ public RegionRenderer getRenderer() { return renderer; } - /** Returns the associated RegionRenderer's RenderState. */ - public RenderState getRenderState() { return renderer.getRenderState(); } - /** * Sets the clear parameter for {@link GL#glClearColor(float, float, float, float) glClearColor(..)} and {@link GL#glClear(int) glClear(..)} * to be issued at {@link #display(GLAutoDrawable)}. @@ -401,7 +398,7 @@ public final class Scene implements Container, GLEventListener { final float color = ( i + 1f ) / ( shapeCount + 2f ); // FIXME // System.err.printf("drawGL: color %f, index %d of [0..%d[%n", color, i, shapeCount); - renderer.getRenderState().setColorStatic(color, color, color, 1f); + renderer.setColorStatic(color, color, color, 1f); shape.drawToSelect(gl, renderer, sampleCount0); } else { shape.draw(gl, renderer, sampleCount0); @@ -1041,7 +1038,7 @@ public final class Scene implements Container, GLEventListener { } else { qualityStr = ""; } - if( getRenderState().isHintMaskSet(RenderState.BITHINT_BLENDING_ENABLED) ) { + if( getRenderer().isHintMaskSet(RenderState.BITHINT_BLENDING_ENABLED) ) { blendStr = ", blend"; } else { blendStr = ""; |