From dcc9cfd2397f2a44ed8d5b980297c5b974b5ac18 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 18 Oct 2012 12:16:29 +0200 Subject: ImmModeSink: Pretty'fying Ctor/Factory methods argument list --- .../com/jogamp/opengl/util/ImmModeSink.java | 37 ++++++++++++---------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'src/jogl/classes/com/jogamp/opengl/util') diff --git a/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java b/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java index 19174d82f..1147a1580 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java +++ b/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java @@ -80,8 +80,9 @@ public class ImmModeSink { int nComps, int nDataType, int tComps, int tDataType, int glBufferUsage) { - return new ImmModeSink(initialElementCount, vComps, - vDataType, cComps, cDataType, nComps, nDataType, tComps, tDataType, false, glBufferUsage); + return new ImmModeSink(initialElementCount, + vComps, vDataType, cComps, cDataType, nComps, nDataType, tComps, tDataType, + false, glBufferUsage); } /** @@ -114,8 +115,9 @@ public class ImmModeSink { int nComps, int nDataType, int tComps, int tDataType, int glBufferUsage) { - return new ImmModeSink(initialElementCount, vComps, - vDataType, cComps, cDataType, nComps, nDataType, tComps, tDataType, true, glBufferUsage); + return new ImmModeSink(initialElementCount, + vComps, vDataType, cComps, cDataType, nComps, nDataType, tComps, tDataType, + true, glBufferUsage); } public void destroy(GL gl) { @@ -323,13 +325,15 @@ public class ImmModeSink { vboSet.glTexCoord3b(x,y,z); } - protected ImmModeSink(int initialElementCount, int vComps, - int vDataType, int cComps, - int cDataType, int nComps, - int nDataType, int tComps, - int tDataType, boolean useGLSL, int glBufferUsage) { - vboSet = new VBOSet(initialElementCount, vComps, - vDataType, cComps, cDataType, nComps, nDataType, tComps, tDataType, useGLSL, glBufferUsage); + protected ImmModeSink(int initialElementCount, + int vComps, int vDataType, + int cComps, int cDataType, + int nComps, int nDataType, + int tComps, int tDataType, + boolean useGLSL, int glBufferUsage) { + vboSet = new VBOSet(initialElementCount, + vComps, vDataType, cComps, cDataType, nComps, nDataType, tComps, tDataType, + useGLSL, glBufferUsage); this.vboSetList = new ArrayList(); } @@ -360,11 +364,12 @@ public class ImmModeSink { private final ArrayList vboSetList; protected static class VBOSet { - protected VBOSet (int initialElementCount, int vComps, - int vDataType, int cComps, - int cDataType, int nComps, - int nDataType, int tComps, - int tDataType, boolean useGLSL, int glBufferUsage) { + protected VBOSet (int initialElementCount, + int vComps, int vDataType, + int cComps, int cDataType, + int nComps, int nDataType, + int tComps, int tDataType, + boolean useGLSL, int glBufferUsage) { this.glBufferUsage=glBufferUsage; this.initialElementCount=initialElementCount; this.resizeElementCount=initialElementCount; -- cgit v1.2.3