diff options
author | Sven Gothel <[email protected]> | 2011-08-22 16:38:45 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-08-22 16:38:45 +0200 |
commit | 87ff90fb03216737df70ff83246664b7fba2663e (patch) | |
tree | d62c0a3c95e2f1eabd9fa69a95c814c668c4ff15 /src/jogl/classes/com/jogamp/opengl/util/GLArrayHandler.java | |
parent | 6602d8eb5af13dc317fff8e044db52c3388f99fa (diff) |
Fix regression of commit 6c346d98f04e2355210960fe9ffde47432f04d62, where VBO/attribute binding wasn't updated (VBO data written, shader change/switch attribute on same location) ; Optimized interleaved GLSL VBO binding, hence split up GLArrayHandler syncData/enableState
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/util/GLArrayHandler.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/GLArrayHandler.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/GLArrayHandler.java b/src/jogl/classes/com/jogamp/opengl/util/GLArrayHandler.java index ee80c4299..b30e220bd 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/GLArrayHandler.java +++ b/src/jogl/classes/com/jogamp/opengl/util/GLArrayHandler.java @@ -11,13 +11,21 @@ import javax.media.opengl.*; public interface GLArrayHandler { /** - * Implementation shall ensure the buffers data is synchronized to the GPU - * and the array state is enabled. + * Implementation shall associate the data with the array + * and synchronize the data with the GPU. + * + * @param gl current GL object + * @param enable true if array data shall be valid, otherwise false. + */ + public void syncData(GL gl, boolean enable); + + /** + * Implementation shall enable or disable the array state. * * @param gl current GL object * @param enable true if array shall be enabled, otherwise false. */ - public void enableBuffer(GL gl, boolean enable); + public void enableState(GL gl, boolean enable); /** * Supporting interleaved arrays, where sub handlers may handle |