From 97751b036e945fc3afe5e46a6a0b5f96d2b9698b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 20 Apr 2023 21:37:27 +0200 Subject: GLArrayDataClient: Refine API doc for grow*() and reserve() --- src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java') diff --git a/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java b/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java index 687eb8a4c..61de9155a 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java +++ b/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java @@ -431,7 +431,7 @@ public class GLArrayDataClient extends GLArrayDataWrapper implements GLArrayData /** * Increase the capacity of the buffer if necessary to add given spareComponents components. *

- * Buffer will not change if current capacity satisfies spareComponents components. + * Buffer will not change if remaining free slots, capacity less position, satisfy spareComponents components. *

* @param spareComponents number of components to add if necessary. * @return true if buffer size has changed, i.e. grown. Otherwise false. @@ -461,7 +461,7 @@ public class GLArrayDataClient extends GLArrayDataWrapper implements GLArrayData * Increase the capacity of the buffer to given elementCount element size, * i.e. elementCount * componentsPerElement components. *

- * Buffer will not change if given elementCount is lower than current size. + * Buffer will not change if given elementCount is lower or equal current capacity. *

* @param elementCount number of elements to hold. * @return true if buffer size has changed, i.e. grown. Otherwise false. -- cgit v1.2.3