aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl/GLArrayData.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-04-11 11:00:17 +0200
committerSven Gothel <[email protected]>2012-04-11 11:00:17 +0200
commit41b75429e3801f8bf8d5eea679487ccc49ce2584 (patch)
tree75c9fe65506bc137320648796eed8bcf20c8f3a9 /src/jogl/classes/javax/media/opengl/GLArrayData.java
parent173b7820b3e7dfb44aab055e7427f296a864feb3 (diff)
GLArrayData: Fix 'growBuffer()' / clarify 'initialSize' -> 'initialElementCount'
- growBuffer() was using '(osize+additional) * components' -> 'osize + (additional * components )' - added jogl.debug.GLArrayData - notifying growBuffer()
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/GLArrayData.java')
-rw-r--r--src/jogl/classes/javax/media/opengl/GLArrayData.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLArrayData.java b/src/jogl/classes/javax/media/opengl/GLArrayData.java
index 26f0f6be2..7c56b53cb 100644
--- a/src/jogl/classes/javax/media/opengl/GLArrayData.java
+++ b/src/jogl/classes/javax/media/opengl/GLArrayData.java
@@ -28,7 +28,7 @@
package javax.media.opengl;
-import java.nio.*;
+import java.nio.Buffer;
/**
*
@@ -129,7 +129,10 @@ public interface GLArrayData {
public int getComponentSizeInBytes();
/**
- * The current number of used elements.<br>
+ * The current number of used elements.
+ * <p>
+ * On element consist out of {@link #getComponentCount()} components.
+ * </p>
* In case the buffer's position is 0 (sealed, flipped), it's based on it's limit instead of it's position.
*/
public int getElementCount();