Package org.lwjgl.bgfx
Class BGFXVertexLayout.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<BGFXVertexLayout,BGFXVertexLayout.Buffer>
-
- org.lwjgl.bgfx.BGFXVertexLayout.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<BGFXVertexLayout>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- BGFXVertexLayout
public static class BGFXVertexLayout.Buffer extends org.lwjgl.system.StructBuffer<BGFXVertexLayout,BGFXVertexLayout.Buffer> implements org.lwjgl.system.NativeResource
An array ofBGFXVertexLayout
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ShortBuffer
attributes()
Returns aShortBuffer
view of theattributes
field.short
attributes(int index)
Returns the value at the specified index of theattributes
field.BGFXVertexLayout.Buffer
attributes(int index, short value)
Sets the specified value at the specified index of theattributes
field.BGFXVertexLayout.Buffer
attributes(java.nio.ShortBuffer value)
Copies the specifiedShortBuffer
to theattributes
field.int
hash()
Returns the value of thehash
field.BGFXVertexLayout.Buffer
hash(int value)
Sets the specified value to thehash
field.java.nio.ShortBuffer
offset()
Returns aShortBuffer
view of theoffset
field.short
offset(int index)
Returns the value at the specified index of theoffset
field.BGFXVertexLayout.Buffer
offset(int index, short value)
Sets the specified value at the specified index of theoffset
field.BGFXVertexLayout.Buffer
offset(java.nio.ShortBuffer value)
Copies the specifiedShortBuffer
to theoffset
field.short
stride()
Returns the value of thestride
field.BGFXVertexLayout.Buffer
stride(short value)
Sets the specified value to thestride
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newBGFXVertexLayout.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 byBGFXVertexLayout.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
hash
public int hash()
Returns the value of thehash
field.
-
stride
public short stride()
Returns the value of thestride
field.
-
offset
public java.nio.ShortBuffer offset()
Returns aShortBuffer
view of theoffset
field.
-
offset
public short offset(int index)
Returns the value at the specified index of theoffset
field.
-
attributes
public java.nio.ShortBuffer attributes()
Returns aShortBuffer
view of theattributes
field.
-
attributes
public short attributes(int index)
Returns the value at the specified index of theattributes
field.
-
hash
public BGFXVertexLayout.Buffer hash(int value)
Sets the specified value to thehash
field.
-
stride
public BGFXVertexLayout.Buffer stride(short value)
Sets the specified value to thestride
field.
-
offset
public BGFXVertexLayout.Buffer offset(java.nio.ShortBuffer value)
Copies the specifiedShortBuffer
to theoffset
field.
-
offset
public BGFXVertexLayout.Buffer offset(int index, short value)
Sets the specified value at the specified index of theoffset
field.
-
attributes
public BGFXVertexLayout.Buffer attributes(java.nio.ShortBuffer value)
Copies the specifiedShortBuffer
to theattributes
field.
-
attributes
public BGFXVertexLayout.Buffer attributes(int index, short value)
Sets the specified value at the specified index of theattributes
field.
-
-