| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected GLArrayHandler | |
| protected int | |
| private boolean | |
| protected boolean | |
| protected ShaderState | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | GLArrayDataClient(final GLArrayDataClient src)
Copy Constructor
Buffer is |
| Modifier and Type | Method and Description |
|---|---|
| public void | associate(final Object
implementation and type dependent association obj, final boolean pass true to enable the association and false to disable it. enable)Overrides com. Implements com. |
| public boolean | bindBuffer(final GL
current GL object gl, final boolean true if VBO shall be bound and data written,
otherwise clear VBO binding. bind)Implements com. bind is true and the data uses VBO,
the latter will be bound and data written to the GPU if required.
|
| protected final void | |
| public static GLArrayDataClient | createFixed(final int
The GL array index index, final int The array component number comps, final int The array index GL data type dataType, final boolean Whether the data shall be normalized normalized, final int initialElementCount)Create a client side buffer object, using a predefined fixed function array index and starting with a new created Buffer object with initialElementCount size On profiles GL2 and ES1 the fixed function pipeline behavior is as expected. |
| public static GLArrayDataClient | createFixed(final int
The GL array index index, final int The array component number comps, final int The array index GL data type dataType, final boolean Whether the data shall be normalized normalized, final int stride, final Buffer the user define data buffer)Create a client side buffer object, using a predefined fixed function array index and starting with a given Buffer object incl it's stride On profiles GL2 and ES1 the fixed function pipeline behavior is as expected. |
| public static GLArrayDataClient | createGLSL(final String
The custom name for the GL attribute. name, final int The array component number comps, final int The array index GL data type dataType, final boolean Whether the data shall be normalized normalized, final int initialElementCount)Create a client side buffer object, using a custom GLSL array attribute name and starting with a new created Buffer object with initialElementCount size |
| public static GLArrayDataClient | createGLSL(final String
The custom name for the GL attribute. name, final int The array component number comps, final int The array index GL data type dataType, final boolean Whether the data shall be normalized normalized, final int stride, final Buffer the user define data buffer)Create a client side buffer object, using a custom GLSL array attribute name and starting with a given Buffer object incl it's stride |
| public void | destroy(final GL gl)
Overrides com. Implements com. |
| public void | enableBuffer(final GL gl, final boolean enable)
Implements com. enable is true,
and transfers the data if required.
|
| public final boolean | |
| protected final void | |
| protected final boolean | |
| protected void | init(final String name, final int index, final int comps, final int dataType, final boolean normalized, final int stride, final Buffer data, final int initialElementCount, final int mappedElementCount, final boolean isVertexAttribute, final GLArrayHandler handler, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget, final boolean usesGLSL)
|
| protected void | |
| public final boolean | isVBOWritten()
Implements com. |
| public void | |
| public void | put(final Buffer v)
Implements com. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | seal(final GL gl, final boolean seal)
Implements com. seal(boolean) and enableBuffer(GL, boolean).
|
| public void | seal(final boolean seal)
Implements com. If seal is true, it disables write operations to the buffer. |
| public final boolean | |
| public void | setEnableAlways(final boolean always)
Implements com. |
| public final void | setVBOWritten(final boolean written)
Implements com. |
| public String | toString()
Overrides com. Implements com. |
| bufferEnabled | back to summary |
|---|---|
| protected boolean bufferEnabled | |
| bufferWritten | back to summary |
|---|---|
| protected boolean bufferWritten | |
| enableBufferAlways | back to summary |
|---|---|
| protected boolean enableBufferAlways | |
| glArrayHandler | back to summary |
|---|---|
| protected GLArrayHandler glArrayHandler | |
| initialElementCount | back to summary |
|---|---|
| protected int initialElementCount | |
| isValidated | back to summary |
|---|---|
| private boolean isValidated | |
| sealed | back to summary |
|---|---|
| protected boolean sealed | |
| shaderState | back to summary |
|---|---|
| protected ShaderState shaderState | |
| usesGLSL | back to summary |
|---|---|
| protected boolean usesGLSL | |
| GLArrayDataClient | back to summary |
|---|---|
| protected GLArrayDataClient() | |
| GLArrayDataClient | back to summary |
|---|---|
| public GLArrayDataClient(final GLArrayDataClient src) Copy Constructor
Buffer is All other values are simply copied. | |
| associate | back to summary |
|---|---|
| public void associate(final Object obj, final boolean enable) Overrides com. Implements com. Doc from com. Implementation and type dependent object association.
One currently known use case is to associate a | |
| bindBuffer | back to summary |
|---|---|
| public boolean bindBuffer(final GL gl, final boolean bind) Implements com. Doc from com. if
If
This method is exposed to allow data VBO arrays, i.e. | |
| checkSeal | back to summary |
|---|---|
| protected final void checkSeal(final boolean test) throws GLException | |
| createFixed | back to summary |
|---|---|
| public static GLArrayDataClient createFixed(final int index, final int comps, final int dataType, final boolean normalized, final int initialElementCount) throws GLException Create a client side buffer object, using a predefined fixed function array index
and starting with a new created Buffer object with initialElementCount size
On profiles GL2 and ES1 the fixed function pipeline behavior is as expected.
On profile ES2 the fixed function emulation will transform these calls to
EnableVertexAttribArray and VertexAttribPointer calls,
and a predefined vertex attribute variable name will be chosen.
The default name mapping will be used,
see
| |
| createFixed | back to summary |
|---|---|
| public static GLArrayDataClient createFixed(final int index, final int comps, final int dataType, final boolean normalized, final int stride, final Buffer buffer) throws GLException Create a client side buffer object, using a predefined fixed function array index
and starting with a given Buffer object incl it's stride
On profiles GL2 and ES1 the fixed function pipeline behavior is as expected.
On profile ES2 the fixed function emulation will transform these calls to
EnableVertexAttribArray and VertexAttribPointer calls,
and a predefined vertex attribute variable name will be chosen.
The default name mapping will be used,
see
| |
| createGLSL | back to summary |
|---|---|
| public static GLArrayDataClient createGLSL(final String name, final int comps, final int dataType, final boolean normalized, final int initialElementCount) throws GLException Create a client side buffer object, using a custom GLSL array attribute name and starting with a new created Buffer object with initialElementCount size
| |
| createGLSL | back to summary |
|---|---|
| public static GLArrayDataClient createGLSL(final String name, final int comps, final int dataType, final boolean normalized, final int stride, final Buffer buffer) throws GLException Create a client side buffer object, using a custom GLSL array attribute name and starting with a given Buffer object incl it's stride | |
| destroy | back to summary |
|---|---|
| public void destroy(final GL gl) Overrides com. Implements com.
| |
| enableBuffer | back to summary |
|---|---|
| public void enableBuffer(final GL gl, final boolean enable) Implements com. Doc from com. Enables the buffer if
Disables the buffer if The action will only be executed, if the internal enable state differs, or 'setEnableAlways' was called with 'true'. It is up to the user to enable/disable the array properly, ie in case of multiple data sets for the same vertex attribute (VA). Meaning in such case usage of one set while expecting another one to be used for the same VA implies decorating each usage with enable/disable.
| |
| enabled | back to summary |
|---|---|
| public final boolean enabled() Implements com.
| |
| growBuffer | back to summary |
|---|---|
| protected final void growBuffer(int additionalElements) | |
| growBufferIfNecessary | back to summary |
|---|---|
| protected final boolean growBufferIfNecessary(final int spareComponents) | |
| init | back to summary |
|---|---|
| protected void init(final String name, final int index, final int comps, final int dataType, final boolean normalized, final int stride, final Buffer data, final int initialElementCount, final int mappedElementCount, final boolean isVertexAttribute, final GLArrayHandler handler, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget, final boolean usesGLSL) throws GLException | |
| init_vbo | back to summary |
|---|---|
| protected void init_vbo(final GL gl) | |
| isVBOWritten | back to summary |
|---|---|
| public final boolean isVBOWritten() Implements com. Doc from com. Is the buffer written to the VBO ?
| |
| padding | back to summary |
|---|---|
| public void padding(int doneInByteSize) Implements com.
| |
| put | back to summary |
|---|---|
| public void put(final Buffer v) Implements com. Generic buffer relative put method. This class buffer Class must match the arguments buffer class. The arguments remaining elements must be a multiple of this arrays element stride.
| |
| putb | back to summary |
|---|---|
| public void putb(final byte v) Implements com.
| |
| putf | back to summary |
|---|---|
| public void putf(final float v) Implements com.
| |
| puti | back to summary |
|---|---|
| public void puti(final int v) Implements com.
| |
| puts | back to summary |
|---|---|
| public void puts(final short v) Implements com.
| |
| putx | back to summary |
|---|---|
| public void putx(final int v) Implements com.
| |
| reset | back to summary |
|---|---|
| public void reset(final GL gl) Implements com.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements com.
| |
| rewind | back to summary |
|---|---|
| public void rewind() Implements com.
| |
| seal | back to summary |
|---|---|
| public void seal(final GL gl, final boolean seal) Implements com. Doc from com. Convenience method calling
| |
| seal | back to summary |
|---|---|
| public void seal(final boolean seal) Implements com. Doc from com. If seal is true, it disables 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.
| |
| sealed | back to summary |
|---|---|
| public final boolean sealed() Implements com.
| |
| setEnableAlways | back to summary |
|---|---|
| public void setEnableAlways(final boolean always) Implements com. Doc from com. Affects the behavior of 'enableBuffer'. The default is 'false' This is useful when you mix up GLArrayData usage with conventional GL array calls or in case of a buggy GL VBO implementation.
| |
| setVBOWritten | back to summary |
|---|---|
| public final void setVBOWritten(final boolean written) Implements com. Doc from com. Marks the buffer written to the VBO
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Implements com. Doc from java. Returns a string representation of the object. | |