aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-18 12:16:29 +0200
committerSven Gothel <[email protected]>2012-10-18 12:16:29 +0200
commitdcc9cfd2397f2a44ed8d5b980297c5b974b5ac18 (patch)
tree27f28ac38a3d8363ebab7c60ab3b9bd77169ef66 /src/jogl
parent4273b4d1ad9780c6ac72683fe8cc6d7a5f402cfa (diff)
ImmModeSink: Pretty'fying Ctor/Factory methods argument list
Diffstat (limited to 'src/jogl')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java37
1 files changed, 21 insertions, 16 deletions
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<VBOSet>();
}
@@ -360,11 +364,12 @@ public class ImmModeSink {
private final ArrayList<VBOSet> 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;