diff options
author | Sven Gothel <[email protected]> | 2014-02-27 23:57:39 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-02-27 23:57:39 +0100 |
commit | bd43319992d02f8194dce94587de476ee421891b (patch) | |
tree | f60bf3762c7591decd3ff1647b6de22e98b2f8b8 /src/jogl/classes/jogamp/graph/curve/opengl/VBORegionSPES2.java | |
parent | 67ec86e539a3db0d06e5cc3550db453589594384 (diff) |
Bug 801: Graph TextRenderer Cleanup Part-5: *Region API Cleanup (protected impl. part)
Diffstat (limited to 'src/jogl/classes/jogamp/graph/curve/opengl/VBORegionSPES2.java')
-rw-r--r-- | src/jogl/classes/jogamp/graph/curve/opengl/VBORegionSPES2.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/jogl/classes/jogamp/graph/curve/opengl/VBORegionSPES2.java b/src/jogl/classes/jogamp/graph/curve/opengl/VBORegionSPES2.java index af0c4c980..f4c40b0e5 100644 --- a/src/jogl/classes/jogamp/graph/curve/opengl/VBORegionSPES2.java +++ b/src/jogl/classes/jogamp/graph/curve/opengl/VBORegionSPES2.java @@ -56,7 +56,7 @@ public class VBORegionSPES2 extends GLRegion { } @Override - public final void clearImpl(final GL2ES2 gl, final RegionRenderer renderer) { + protected final void clearImpl(final GL2ES2 gl, final RegionRenderer renderer) { indicesBuffer.seal(gl, false); indicesBuffer.rewind(); verticeAttr.seal(gl, false); @@ -66,10 +66,7 @@ public class VBORegionSPES2 extends GLRegion { } @Override - public final boolean usesIndices() { return true; } - - @Override - public final void pushVertex(float[] coords, float[] texParams) { + protected final void pushVertex(float[] coords, float[] texParams) { verticeAttr.putf(coords[0]); verticeAttr.putf(coords[1]); verticeAttr.putf(coords[2]); @@ -79,12 +76,12 @@ public class VBORegionSPES2 extends GLRegion { } @Override - public final void pushIndex(int idx) { + protected final void pushIndex(int idx) { indicesBuffer.puts((short)idx); } @Override - public void update(final GL2ES2 gl, final RegionRenderer renderer) { + protected void update(final GL2ES2 gl, final RegionRenderer renderer) { if( !buffersAttached ) { final ShaderState st = renderer.getShaderState(); st.ownAttribute(verticeAttr, true); @@ -119,7 +116,7 @@ public class VBORegionSPES2 extends GLRegion { } @Override - public void destroy(final GL2ES2 gl, final RegionRenderer renderer) { + protected void destroyImpl(final GL2ES2 gl, final RegionRenderer renderer) { if(DEBUG_INSTANCE) { System.err.println("VBORegionSPES2 Destroy: " + this); } |