diff options
author | Sven Gothel <sgothel@jausoft.com> | 2010-03-28 01:45:00 +0100 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2010-03-28 01:45:00 +0100 |
commit | 9e8ba29142d83d5749fc9650715019fef3539b1d (patch) | |
tree | 9062b73c85c4facf9011b357fbda2b1195eb23a2 /src/jogl/classes/com/sun/opengl/util/GLArrayDataEditable.java | |
parent | 2dc67e8f8faeb418061e0dd450b37d4cb3ce4c2f (diff) | |
parent | ea23f9505e3fcf3a5b928855eba739ad123b64f4 (diff) |
Merge branch 'master' of github.com:mbien/jogl
Diffstat (limited to 'src/jogl/classes/com/sun/opengl/util/GLArrayDataEditable.java')
-rw-r--r-- | src/jogl/classes/com/sun/opengl/util/GLArrayDataEditable.java | 110 |
1 files changed, 0 insertions, 110 deletions
diff --git a/src/jogl/classes/com/sun/opengl/util/GLArrayDataEditable.java b/src/jogl/classes/com/sun/opengl/util/GLArrayDataEditable.java deleted file mode 100644 index c8fcbf573..000000000 --- a/src/jogl/classes/com/sun/opengl/util/GLArrayDataEditable.java +++ /dev/null @@ -1,110 +0,0 @@ - -package com.sun.opengl.util; - -import javax.media.opengl.*; - -import java.nio.*; - -/** - * - * The total number of bytes hold by the referenced buffer is: - * getComponentSize()* getComponentNumber() * getElementNumber() - * - */ -public interface GLArrayDataEditable extends GLArrayData { - - public boolean sealed(); - - /** - * The VBO buffer usage, if it's an VBO, otherwise -1 - */ - public int getBufferUsage(); - - /** - * Is the buffer written to the GPU ? - */ - public boolean isBufferWritten(); - - /** - * Marks the buffer written to the GPU - */ - public void setBufferWritten(boolean written); - - // - // Data and GL state modification .. - // - - public void destroy(GL gl); - - public void reset(GL gl); - - /** - * If seal is true, it - * disable write operations to the buffer. - * Calls flip, ie limit:=position and position:=0. - * Also enables the buffer for OpenGL, and passes the data. - * - * If seal is false, it - * enable write operations continuing - * at the buffer position, where you left off at seal(true), - * ie position:=limit and limit:=capacity. - * Also disables the buffer for OpenGL. - * - * @see #seal(boolean) - */ - public void seal(GL gl, boolean seal); - - /** - * Enables/disables the buffer, which implies - * the client state, binding the VBO - * and transfering the data if not done yet. - * - * The above will only be executed, - * if the buffer is disabled, - * or 'setEnableAlways' was called with 'true'. - * - * @see #setEnableAlways(boolean) - */ - public void enableBuffer(GL gl, boolean enable); - - /** - * Affects the behavior of 'enableBuffer'. - * - * The default is 'false' - * - * This is usefull when you mix up - * GLArrayData usage with conventional GL array calls. - * - * @see #enableBuffer(GL, boolean) - */ - public void setEnableAlways(boolean always); - - // - // Data modification .. - // - - public void reset(); - - /** - * If seal is true, it - * disable write operations to the buffer. - * Calls flip, ie limit:=position and position:=0. - * - * If seal is false, it - * enable write operations continuing - * at the buffer position, where you left off at seal(true), - * ie position:=limit and limit:=capacity. - * - */ - public void seal(boolean seal); - - public void rewind(); - public void padding(int done); - public void put(Buffer v); - public void putb(byte v); - public void puts(short v); - public void puti(int v); - public void putx(int v); - public void putf(float v); -} - |