| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected Buffer | |
| protected int | |
| protected Class | |
| protected int | |
| protected int | |
| public static final boolean | |
| protected int | |
| protected boolean | |
| protected int | |
| protected int | |
| protected String | |
| protected boolean | |
| protected int | strideB
stride in bytes; strideB >= componentsPerElement * componentByteSize |
| protected int | strideL
stride in logical components |
| protected boolean | |
| protected int | |
| protected long | |
| protected int | |
| protected int |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | GLArrayDataWrapper(final GLArrayDataWrapper 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)Implements com. |
| public static GLArrayDataWrapper | Returns: the new create instanceThe 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, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget)Create a VBO, using a predefined fixed function array index, wrapping the given data. |
| public static GLArrayDataWrapper | Returns: the new create instanceThe 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 int mappedElementCount, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget)Create a VBO, using a predefined fixed function array index, wrapping the mapped data characteristics. |
| public static GLArrayDataWrapper | Returns: the new create instanceThe custom name for the GL attribute, maybe null if gpuBufferTarget is name, final int GL#GL_ELEMENT_ARRAY_BUFFERThe 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, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget)Create a VBO, using a custom GLSL array attribute name, wrapping the given data. |
| public static GLArrayDataWrapper | Returns: the new create instanceThe custom name for the GL attribute, maybe null if gpuBufferTarget is name, final int GL#GL_ELEMENT_ARRAY_BUFFERThe 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 int mappedElementCount, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget)Create a VBO, using a custom GLSL array attribute name, wrapping the mapped data characteristics. |
| public void | |
| public Buffer | getBuffer()
Implements com. |
| public final Class | |
| public static final Class | |
| public final int | getComponentCount()
Implements com. |
| public final int | getComponentSizeInBytes()
Implements com. |
| public final int | getComponentType()
Implements com. |
| public final int | getElementCount()
Implements com. |
| public final int | getIndex()
Implements com. |
| public final int | getLocation()
Implements com. |
| public final String | getName()
Implements com. |
| public final boolean | getNormalized()
Implements com. |
| public final int | getSizeInBytes()
Implements com. |
| public final int | |
| public final int | |
| public final long | getVBOOffset()
Implements com. |
| public final int | getVBOTarget()
Implements com. |
| public final int | |
| protected void | init(final String name, final int index, final int componentsPerElement, final int componentType, final boolean normalized, final int stride, final Buffer data, final int mappedElementCount, final boolean isVertexAttribute, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget)
|
| public final boolean | isVBO()
Implements com. |
| public final boolean | isVertexAttribute()
Implements com. |
| public final int | setLocation(final int v)
Implements com. |
| public final int | setLocation(final GL2ES2 gl, final int program)
Implements com. |
| public final int | setLocation(final GL2ES2 gl, final int program, final int location)
Implements com. |
| public void | setName(final String newName)
Implements com. |
| public void | |
| public void | setVBOName(final int vboName)
Set the VBO buffer name, if valid (!= 0) enable use of VBO, otherwise (==0) disable VBO usage. |
| public void | |
| public void | |
| public String | toString()
Overrides java. Implements com. |
| public final boolean |
| alive | back to summary |
|---|---|
| protected boolean alive | |
| buffer | back to summary |
|---|---|
| protected Buffer buffer | |
| componentByteSize | back to summary |
|---|---|
| protected int componentByteSize | |
| componentClazz | back to summary |
|---|---|
| protected Class<?> componentClazz | |
| componentsPerElement | back to summary |
|---|---|
| protected int componentsPerElement | |
| componentType | back to summary |
|---|---|
| protected int componentType | |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG | |
| index | back to summary |
|---|---|
| protected int index | |
| isVertexAttribute | back to summary |
|---|---|
| protected boolean isVertexAttribute | |
| location | back to summary |
|---|---|
| protected int location | |
| mappedElementCount | back to summary |
|---|---|
| protected int mappedElementCount | |
| name | back to summary |
|---|---|
| protected String name | |
| normalized | back to summary |
|---|---|
| protected boolean normalized | |
| strideB | back to summary |
|---|---|
| protected int strideB stride in bytes; strideB >= componentsPerElement * componentByteSize | |
| strideL | back to summary |
|---|---|
| protected int strideL stride in logical components | |
| vboEnabled | back to summary |
|---|---|
| protected boolean vboEnabled | |
| vboName | back to summary |
|---|---|
| protected int vboName | |
| vboOffset | back to summary |
|---|---|
| protected long vboOffset | |
| vboTarget | back to summary |
|---|---|
| protected int vboTarget | |
| vboUsage | back to summary |
|---|---|
| protected int vboUsage | |
| GLArrayDataWrapper | back to summary |
|---|---|
| protected GLArrayDataWrapper() | |
| GLArrayDataWrapper | back to summary |
|---|---|
| public GLArrayDataWrapper(final GLArrayDataWrapper src) Copy Constructor
Buffer is All other values are simply copied. | |
| associate | back to summary |
|---|---|
| public void associate(final Object obj, final boolean enable) Implements com. Doc from com. Implementation and type dependent object association.
One currently known use case is to associate a | |
| createFixed | back to summary |
|---|---|
| public static GLArrayDataWrapper createFixed(final int index, final int comps, final int dataType, final boolean normalized, final int stride, final Buffer buffer, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget) throws GLException Create a VBO, using a predefined fixed function array index, wrapping the given data.
| |
| createFixed | back to summary |
|---|---|
| public static GLArrayDataWrapper createFixed(final int index, final int comps, final int dataType, final boolean normalized, final int stride, final int mappedElementCount, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget) throws GLException Create a VBO, using a predefined fixed function array index, wrapping the mapped data characteristics.
| |
| createGLSL | back to summary |
|---|---|
| public static GLArrayDataWrapper createGLSL(final String name, final int comps, final int dataType, final boolean normalized, final int stride, final Buffer buffer, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget) throws GLException Create a VBO, using a custom GLSL array attribute name, wrapping the given data.
| |
| createGLSL | back to summary |
|---|---|
| public static GLArrayDataWrapper createGLSL(final String name, final int comps, final int dataType, final boolean normalized, final int stride, final int mappedElementCount, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget) throws GLException Create a VBO, using a custom GLSL array attribute name, wrapping the mapped data characteristics.
| |
| destroy | back to summary |
|---|---|
| public void destroy(final GL gl) Implements com.
| |
| getBuffer | back to summary |
|---|---|
| public Buffer getBuffer() Implements com. Doc from com. The Buffer holding the data, may be null if a GPU buffer without client bound data
| |
| getBufferClass | back to summary |
|---|---|
| public final Class | |
| getBufferClass | back to summary |
|---|---|
| public static final Class | |
| getComponentCount | back to summary |
|---|---|
| public final int getComponentCount() Implements com. Doc from com. The number of components per element
| |
| getComponentSizeInBytes | back to summary |
|---|---|
| public final int getComponentSizeInBytes() Implements com. Doc from com. The component's size in bytes
| |
| getComponentType | back to summary |
|---|---|
| public final int getComponentType() Implements com. Doc from com. The component's GL data type, ie. GL_FLOAT
| |
| getElementCount | back to summary |
|---|---|
| public final int getElementCount() Implements com. Doc from com. The current number of used elements.
On element consist out of
| |
| getIndex | back to summary |
|---|---|
| public final int getIndex() Implements com. Doc from com. The index of the predefined array index, see list below, or -1 in case of a shader attribute array.
| |
| getLocation | back to summary |
|---|---|
| public final int getLocation() Implements com. Doc from com. Returns the shader attribute location for this name, -1 if not yet determined
| |
| getName | back to summary |
|---|---|
| public final String getName() Implements com. Doc from com. The name of the reflecting shader array attribute.
| |
| getNormalized | back to summary |
|---|---|
| public final boolean getNormalized() Implements com. Doc from com. True, if GL shall normalize fixed point data while converting them into float.
Default behavior (of the fixed function pipeline) is
| |
| getSizeInBytes | back to summary |
|---|---|
| public final int getSizeInBytes() Implements com. Doc from com. The currently used size in bytes.
| |
| getStride | back to summary |
|---|---|
| public final int getStride() Implements com.
| |
| getVBOName | back to summary |
|---|---|
| public final int getVBOName() Implements com. Doc from com. The VBO name or 0 if not a VBO
| |
| getVBOOffset | back to summary |
|---|---|
| public final long getVBOOffset() Implements com. Doc from com. The VBO buffer offset or 0 if not a VBO
| |
| getVBOTarget | back to summary |
|---|---|
| public final int getVBOTarget() Implements com. Doc from com. The VBO target or 0 if not a VBO
| |
| getVBOUsage | back to summary |
|---|---|
| public final int getVBOUsage() Implements com. Doc from com. The VBO usage or 0 if not a VBO
| |
| init | back to summary |
|---|---|
| protected void init(final String name, final int index, final int componentsPerElement, final int componentType, final boolean normalized, final int stride, final Buffer data, final int mappedElementCount, final boolean isVertexAttribute, final int vboName, final long vboOffset, final int vboUsage, final int vboTarget) throws GLException | |
| isVBO | back to summary |
|---|---|
| public final boolean isVBO() Implements com. Doc from com. Determines whether the data is server side (VBO) and enabled, or a client side array (false).
| |
| isVertexAttribute | back to summary |
|---|---|
| public final boolean isVertexAttribute() Implements com. Doc from com. Returns true if this data set is intended for a GLSL vertex shader attribute, otherwise false, ie intended for fixed function vertex pointer
| |
| setLocation | back to summary |
|---|---|
| public final int setLocation(final int v) Implements com. Doc from com. Sets the given location of the shader attribute
| |
| setLocation | back to summary |
|---|---|
| public final int setLocation(final GL2ES2 gl, final int program) Implements com. Doc from com. Retrieves the location of the shader attribute from the linked shader program. No validation is performed within the implementation.
| |
| setLocation | back to summary |
|---|---|
| public final int setLocation(final GL2ES2 gl, final int program, final int location) Implements com. Doc from com. Binds the location of the shader attribute to the given location for the unlinked shader program. No validation is performed within the implementation.
| |
| setName | back to summary |
|---|---|
| public void setName(final String newName) Implements com. Doc from com. Set a new name for this array. This clears the location, i.e. sets it to -1.
| |
| setVBOEnabled | back to summary |
|---|---|
| public void setVBOEnabled(final boolean vboEnabled) Enable or disable use of VBO. Only possible if a VBO buffer name is defined.
| |
| setVBOName | back to summary |
|---|---|
| public void setVBOName(final int vboName) Set the VBO buffer name, if valid (!= 0) enable use of VBO, otherwise (==0) disable VBO usage.
| |
| setVBOTarget | back to summary |
|---|---|
public void setVBOTarget(final int vboTarget)
| |
| setVBOUsage | back to summary |
|---|---|
public void setVBOUsage(final int vboUsage)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements com. Doc from java. Returns a string representation of the object. | |
| validate | back to summary |
|---|---|
| public final boolean validate(final GLProfile glp, final boolean throwException) Validates this instance's parameter. Called automatically by
| |