diff options
author | Sven Gothel <[email protected]> | 2023-04-20 21:37:27 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-04-20 21:37:27 +0200 |
commit | 97751b036e945fc3afe5e46a6a0b5f96d2b9698b (patch) | |
tree | 3e390fb7265f088f805bea720f6a75f3ccb300ad /src | |
parent | fad6cd0cc8033b6ef1ee16998cccd0d756030147 (diff) |
GLArrayDataClient: Refine API doc for grow*() and reserve()
Diffstat (limited to 'src')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java | 4 |
1 files changed, 2 insertions, 2 deletions
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. * <p> - * Buffer will not change if current capacity satisfies spareComponents components. + * Buffer will not change if remaining free slots, capacity less position, satisfy spareComponents components. * </p> * @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. * <p> - * 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. * </p> * @param elementCount number of elements to hold. * @return true if buffer size has changed, i.e. grown. Otherwise false. |