public static class BGFXVertexLayout.Buffer extends org.lwjgl.system.StructBuffer<BGFXVertexLayout,BGFXVertexLayout.Buffer> implements org.lwjgl.system.NativeResource
BGFXVertexLayout structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
BGFXVertexLayout.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ShortBuffer |
attributes()
Returns a
ShortBuffer view of the attributes field. |
short |
attributes(int index)
Returns the value at the specified index of the
attributes field. |
BGFXVertexLayout.Buffer |
attributes(int index,
short value)
Sets the specified value at the specified index of the
attributes field. |
BGFXVertexLayout.Buffer |
attributes(java.nio.ShortBuffer value)
Copies the specified
ShortBuffer to the attributes field. |
int |
hash()
Returns the value of the
hash field. |
BGFXVertexLayout.Buffer |
hash(int value)
Sets the specified value to the
hash field. |
java.nio.ShortBuffer |
offset()
Returns a
ShortBuffer view of the offset field. |
short |
offset(int index)
Returns the value at the specified index of the
offset field. |
BGFXVertexLayout.Buffer |
offset(int index,
short value)
Sets the specified value at the specified index of the
offset field. |
BGFXVertexLayout.Buffer |
offset(java.nio.ShortBuffer value)
Copies the specified
ShortBuffer to the offset field. |
short |
stride()
Returns the value of the
stride field. |
BGFXVertexLayout.Buffer |
stride(short value)
Sets the specified value to the
stride field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
BGFXVertexLayout.Buffer instance backed by the specified container.
Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by BGFXVertexLayout.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public int hash()
hash field.public short stride()
stride field.public java.nio.ShortBuffer offset()
ShortBuffer view of the offset field.public short offset(int index)
offset field.public java.nio.ShortBuffer attributes()
ShortBuffer view of the attributes field.public short attributes(int index)
attributes field.public BGFXVertexLayout.Buffer hash(int value)
hash field.public BGFXVertexLayout.Buffer stride(short value)
stride field.public BGFXVertexLayout.Buffer offset(java.nio.ShortBuffer value)
ShortBuffer to the offset field.public BGFXVertexLayout.Buffer offset(int index, short value)
offset field.public BGFXVertexLayout.Buffer attributes(java.nio.ShortBuffer value)
ShortBuffer to the attributes field.public BGFXVertexLayout.Buffer attributes(int index, short value)
attributes field.Copyright LWJGL. All Rights Reserved. License terms.