From 41b75429e3801f8bf8d5eea679487ccc49ce2584 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 11 Apr 2012 11:00:17 +0200 Subject: GLArrayData: Fix 'growBuffer()' / clarify 'initialSize' -> 'initialElementCount' - growBuffer() was using '(osize+additional) * components' -> 'osize + (additional * components )' - added jogl.debug.GLArrayData - notifying growBuffer() --- src/jogl/classes/javax/media/opengl/GLArrayData.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/javax') 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.
+ * The current number of used elements. + *

+ * On element consist out of {@link #getComponentCount()} components. + *

* 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(); -- cgit v1.2.3