| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private GLBufferStorage |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | GLArrayDataServer(final GLArrayDataServer src)
Copy Constructor
Buffer is |
| Modifier and Type | Method and Description |
|---|---|
| public GLArrayData | addFixedSubArray(final int
The GL array index, maybe -1 if vboTarget is index, final int GL#GL_ELEMENT_ARRAY_BUFFERThis interleaved array segment's component count per element comps, final int vboTarget)Configure a segment of this fixed function interleaved array (see |
| public GLArrayData | addGLSLSubArray(final String
The custom name for the GL attribute, maybe null if vboTarget is name, final int GL#GL_ELEMENT_ARRAY_BUFFERThis interleaved array segment's component count per element comps, final int vboTarget)Configure a segment of this GLSL interleaved array (see |
| public static GLArrayDataServer | createData(final int
component count per element compsPerElement, final int The component's OpenGL data type dataType, final int in bytes from one element to the other. If zero, compsPerElement * compSizeInBytes stride, final Buffer the user define data buffer, final int vboUsage, final int GL#GL_ELEMENT_ARRAY_BUFFER, ..
{@link GL#glGenBuffers(int, int[], int)Create a VBO data object for any target w/o render pipeline association, ie |
| public static GLArrayDataServer | createData(final int
component count per element compsPerElement, final int The component's OpenGL data type dataType, final int initialElementCount, final int vboUsage, final int vboTarget)Create a VBO data object for any target w/o render pipeline association, ie |
| public static GLArrayDataServer | createDataMapped(final int
component count per element compsPerElement, final int The component's OpenGL data type dataType, final int mappedElementCount, final int vboUsage, final int vboTarget)Create a VBO data object for any target w/o render pipeline association, i.e. |
| public static GLArrayDataServer | createFixed(final int
The GL array index index, final int component count per element compsPerElement, final int The component's OpenGL data type dataType, final boolean Whether the data shall be normalized normalized, final int in bytes from one element to the other. If zero, compsPerElement * compSizeInBytes stride, final Buffer the user define data buffer, final int vboUsage)Create a VBO, 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 GLArrayDataServer | createFixed(final int
The GL array index index, final int component count per element compsPerElement, final int The component's OpenGL data type dataType, final boolean Whether the data shall be normalized normalized, final int initialElementCount, final int vboUsage)Create a VBO, 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 GLArrayDataServer | createFixedInterleaved(final int
The total number of all interleaved components per element. compsPerElement, final int The component's OpenGL data type dataType, final boolean Whether the data shall be normalized normalized, final int The initial number of all interleaved elements initialElementCount, final int vboUsage)Create a VBO for fixed function interleaved array data starting with a new created Buffer object with initialElementCount size. |
| public static GLArrayDataServer | createFixedInterleaved(final int
The total number of all interleaved components per element. compsPerElement, final int The component's OpenGL data type dataType, final boolean Whether the data shall be normalized normalized, final int in bytes from one element of a sub-array to the other. If zero, compsPerElement * compSizeInBytes stride, final Buffer The user define data of all interleaved elements buffer, final int vboUsage)Create a VBO for fixed function interleaved array data starting with a given Buffer object incl it's stride User needs to configure the interleaved segments via |
| public static GLArrayDataServer | createFixedInterleavedMapped(final int
The total number of all interleaved components per element. compsPerElement, final int The component's OpenGL data type dataType, final boolean Whether the data shall be normalized normalized, final int The total number of all interleaved elements mappedElementCount, final int vboUsage)Create a VBO for fixed function interleaved array data
intended for GPU buffer storage mapping, see |
| public static GLArrayDataServer | createGLSL(final String
The custom name for the GL attribute name, final int component count per element compsPerElement, final int The component's OpenGL data type dataType, final boolean Whether the data shall be normalized normalized, final int initialElementCount, final int vboUsage)Create a VBO, using a custom GLSL array attribute name and starting with a new created Buffer object with initialElementCount size |
| public static GLArrayDataServer | createGLSL(final String
The custom name for the GL attribute name, final int component count per element compsPerElement, final int The component's OpenGL data type dataType, final boolean Whether the data shall be normalized normalized, final int in bytes from one element to the other. If zero, compsPerElement * compSizeInBytes stride, final Buffer the user define data buffer, final int vboUsage)Create a VBO, using a custom GLSL array attribute name and starting with a given Buffer object incl it's stride |
| public static GLArrayDataServer | createGLSLInterleaved(final int
The total number of all interleaved components per element. compsPerElement, final int The component's OpenGL data type dataType, final boolean Whether the data shall be normalized normalized, final int The initial number of all interleaved elements initialElementCount, final int vboUsage)Create a VBO for GLSL interleaved array data starting with a new created Buffer object with initialElementCount size. |
| public static GLArrayDataServer | createGLSLInterleaved(final int
The total number of all interleaved components per element. compsPerElement, final int The component's OpenGL data type dataType, final boolean Whether the data shall be normalized normalized, final int in bytes from one element of a sub-array to the other. If zero, compsPerElement * compSizeInBytes stride, final Buffer The user define data of all interleaved elements buffer, final int vboUsage)Create a VBO for GLSL interleaved array data starting with a given Buffer object incl it's stride User needs to configure the interleaved segments via |
| public static GLArrayDataServer | createGLSLInterleavedMapped(final int
The total number of all interleaved components per element. compsPerElement, final int The component's OpenGL data type dataType, final boolean Whether the data shall be normalized normalized, final int The total number of all interleaved elements mappedElementCount, final int vboUsage)Create a VBO for GLSL interleaved array data
intended for GPU buffer storage mapping, see |
| public static GLArrayDataServer | createGLSLMapped(final String
The custom name for the GL attribute name, final int component count per element compsPerElement, final int The component's OpenGL data type dataType, final boolean Whether the data shall be normalized normalized, final int mappedElementCount, final int vboUsage)Create a VBO, using a custom GLSL array attribute name
intended for GPU buffer storage mapping, see |
| public void | destroy(final GL gl)
Overrides com. Implements com. |
| public final int | |
| 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 glArrayHandler, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget, final boolean usesGLSL)
|
| protected void | |
| public GLBufferStorage | |
| public GLBufferStorage | |
| public final void | |
| private final void | |
| public void | setVBOEnabled(final boolean vboUsage)
Overrides com. |
| public String | toString()
Overrides com. Implements com. |
| public void |
| interleavedOffset | back to summary |
|---|---|
| private int interleavedOffset | |
| mappedStorage | back to summary |
|---|---|
| private GLBufferStorage mappedStorage | |
| GLArrayDataServer | back to summary |
|---|---|
| protected GLArrayDataServer() | |
| GLArrayDataServer | back to summary |
|---|---|
| public GLArrayDataServer(final GLArrayDataServer src) Copy Constructor
Buffer is All other values are simply copied. | |
| addFixedSubArray | back to summary |
|---|---|
| public GLArrayData addFixedSubArray(final int index, final int comps, final int vboTarget) Configure a segment of this fixed function interleaved array (see This method may be called several times as long the sum of interleaved components does not exceed the total component count of the created interleaved array. The memory of the the interleaved array is being used.
Must be called before using the array, eg:
| |
| addGLSLSubArray | back to summary |
|---|---|
| public GLArrayData addGLSLSubArray(final String name, final int comps, final int vboTarget) Configure a segment of this GLSL interleaved array (see This method may be called several times as long the sum of interleaved components does not exceed the total component count of the created interleaved array. The memory of the the interleaved array is being used.
Must be called before using the array, eg:
| |
| createData | back to summary |
|---|---|
| public static GLArrayDataServer createData(final int compsPerElement, final int dataType, final int stride, final Buffer buffer, final int vboUsage, final int vboTarget) throws GLException Create a VBO data object for any target w/o render pipeline association, ie
| |
| createData | back to summary |
|---|---|
| public static GLArrayDataServer createData(final int compsPerElement, final int dataType, final int initialElementCount, final int vboUsage, final int vboTarget) throws GLException Create a VBO data object for any target w/o render pipeline association, ie
| |
| createDataMapped | back to summary |
|---|---|
| public static GLArrayDataServer createDataMapped(final int compsPerElement, final int dataType, final int mappedElementCount, final int vboUsage, final int vboTarget) throws GLException Create a VBO data object for any target w/o render pipeline association, i.e. No index, name for a fixed function pipeline nor vertex attribute is given.
| |
| createFixed | back to summary |
|---|---|
| public static GLArrayDataServer createFixed(final int index, final int compsPerElement, final int dataType, final boolean normalized, final int stride, final Buffer buffer, final int vboUsage) throws GLException Create a VBO, 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
| |
| createFixed | back to summary |
|---|---|
| public static GLArrayDataServer createFixed(final int index, final int compsPerElement, final int dataType, final boolean normalized, final int initialElementCount, final int vboUsage) throws GLException Create a VBO, 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
| |
| createFixedInterleaved | back to summary |
|---|---|
| public static GLArrayDataServer createFixedInterleaved(final int compsPerElement, final int dataType, final boolean normalized, final int initialElementCount, final int vboUsage) throws GLException Create a VBO for fixed function interleaved array data starting with a new created Buffer object with initialElementCount size. User needs to configure the interleaved segments via
| |
| createFixedInterleaved | back to summary |
|---|---|
| public static GLArrayDataServer createFixedInterleaved(final int compsPerElement, final int dataType, final boolean normalized, final int stride, final Buffer buffer, final int vboUsage) throws GLException Create a VBO for fixed function interleaved array data starting with a given Buffer object incl it's stride User needs to configure the interleaved segments via
| |
| createFixedInterleavedMapped | back to summary |
|---|---|
| public static GLArrayDataServer createFixedInterleavedMapped(final int compsPerElement, final int dataType, final boolean normalized, final int mappedElementCount, final int vboUsage) throws GLException Create a VBO for fixed function interleaved array data
intended for GPU buffer storage mapping, see User needs to configure the interleaved segments via
| |
| createGLSL | back to summary |
|---|---|
| public static GLArrayDataServer createGLSL(final String name, final int compsPerElement, final int dataType, final boolean normalized, final int initialElementCount, final int vboUsage) throws GLException Create a VBO, using a custom GLSL array attribute name and starting with a new created Buffer object with initialElementCount size
| |
| createGLSL | back to summary |
|---|---|
| public static GLArrayDataServer createGLSL(final String name, final int compsPerElement, final int dataType, final boolean normalized, final int stride, final Buffer buffer, final int vboUsage) throws GLException Create a VBO, using a custom GLSL array attribute name and starting with a given Buffer object incl it's stride
| |
| createGLSLInterleaved | back to summary |
|---|---|
| public static GLArrayDataServer createGLSLInterleaved(final int compsPerElement, final int dataType, final boolean normalized, final int initialElementCount, final int vboUsage) throws GLException Create a VBO for GLSL interleaved array data starting with a new created Buffer object with initialElementCount size. User needs to configure the interleaved segments via
| |
| createGLSLInterleaved | back to summary |
|---|---|
| public static GLArrayDataServer createGLSLInterleaved(final int compsPerElement, final int dataType, final boolean normalized, final int stride, final Buffer buffer, final int vboUsage) throws GLException Create a VBO for GLSL interleaved array data starting with a given Buffer object incl it's stride User needs to configure the interleaved segments via
| |
| createGLSLInterleavedMapped | back to summary |
|---|---|
| public static GLArrayDataServer createGLSLInterleavedMapped(final int compsPerElement, final int dataType, final boolean normalized, final int mappedElementCount, final int vboUsage) throws GLException Create a VBO for GLSL interleaved array data
intended for GPU buffer storage mapping, see User needs to configure the interleaved segments via
| |
| createGLSLMapped | back to summary |
|---|---|
| public static GLArrayDataServer createGLSLMapped(final String name, final int compsPerElement, final int dataType, final boolean normalized, final int mappedElementCount, final int vboUsage) throws GLException Create a VBO, using a custom GLSL array attribute name
intended for GPU buffer storage mapping, see
| |
| destroy | back to summary |
|---|---|
| public void destroy(final GL gl) Overrides com. Implements com.
| |
| getInterleavedOffset | back to summary |
|---|---|
| public final int getInterleavedOffset() | |
| 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 glArrayHandler, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget, final boolean usesGLSL) throws GLException Overrides com.
| |
| init_vbo | back to summary |
|---|---|
| protected void init_vbo(final GL gl) Overrides com.
| |
| mapStorage | back to summary |
|---|---|
| public GLBufferStorage mapStorage(final GL gl, final int access) | |
| mapStorage | back to summary |
|---|---|
| public GLBufferStorage mapStorage(final GL gl, final long offset, final long length, final int access) | |
| setInterleavedOffset | back to summary |
|---|---|
| public final void setInterleavedOffset(final int interleavedOffset) | |
| setMappedBuffer | back to summary |
|---|---|
| private final void setMappedBuffer(final GLBufferStorage storage) | |
| setVBOEnabled | back to summary |
|---|---|
| public void setVBOEnabled(final boolean vboUsage) Overrides com. Convenient way do disable the VBO behavior and switch to client side data one Only possible if buffer is defined.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Implements com. Doc from java. Returns a string representation of the object. | |
| unmapStorage | back to summary |
|---|---|
| public void unmapStorage(final GL gl) | |