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 ofBGFXVertexLayoutstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ShortBufferattributes()shortattributes(int index)BGFXVertexLayout.Bufferattributes(int index, short value)Sets the specified value at the specified index of theattributesfield.BGFXVertexLayout.Bufferattributes(java.nio.ShortBuffer value)Copies the specifiedShortBufferto theattributesfield.inthash()BGFXVertexLayout.Bufferhash(int value)Sets the specified value to thehashfield.java.nio.ShortBufferoffset()shortoffset(int index)BGFXVertexLayout.Bufferoffset(int index, short value)Sets the specified value at the specified index of theBGFXVertexLayout.offset()field.BGFXVertexLayout.Bufferoffset(java.nio.ShortBuffer value)Copies the specifiedShortBufferto theBGFXVertexLayout.offset()field.shortstride()BGFXVertexLayout.Bufferstride(short value)Sets the specified value to theBGFXVertexLayout.stride()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newBGFXVertexLayout.Bufferinstance 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 the
hashfield.
-
stride
public short stride()
- Returns:
- the value of the
BGFXVertexLayout.stride()field.
-
offset
public java.nio.ShortBuffer offset()
- Returns:
- a
ShortBufferview of theBGFXVertexLayout.offset()field.
-
offset
public short offset(int index)
- Returns:
- the value at the specified index of the
BGFXVertexLayout.offset()field.
-
attributes
public java.nio.ShortBuffer attributes()
- Returns:
- a
ShortBufferview of theattributesfield.
-
attributes
public short attributes(int index)
- Returns:
- the value at the specified index of the
attributesfield.
-
hash
public BGFXVertexLayout.Buffer hash(int value)
Sets the specified value to thehashfield.
-
stride
public BGFXVertexLayout.Buffer stride(short value)
Sets the specified value to theBGFXVertexLayout.stride()field.
-
offset
public BGFXVertexLayout.Buffer offset(java.nio.ShortBuffer value)
Copies the specifiedShortBufferto theBGFXVertexLayout.offset()field.
-
offset
public BGFXVertexLayout.Buffer offset(int index, short value)
Sets the specified value at the specified index of theBGFXVertexLayout.offset()field.
-
attributes
public BGFXVertexLayout.Buffer attributes(java.nio.ShortBuffer value)
Copies the specifiedShortBufferto theattributesfield.
-
attributes
public BGFXVertexLayout.Buffer attributes(int index, short value)
Sets the specified value at the specified index of theattributesfield.
-
-