struct bgfx_vertex_layout_t {
uint32_t hash;
uint16_t stride;
uint16_t offset[BGFX_ATTRIB_COUNT];
uint16_t attributes[BGFX_ATTRIB_COUNT];
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | BGFXVertexLayout.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ATTRIBUTES
The struct member offsets. |
| public static final int | HASH
The struct member offsets. |
| public static final int | OFFSET
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STRIDE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | BGFXVertexLayout(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public ShortBuffer | |
| public short | |
| public BGFXVertexLayout | |
| public BGFXVertexLayout | attributes(int index, short value)
Sets the specified value at the specified index of the |
| public static BGFXVertexLayout | |
| public static BGFXVertexLayout. | calloc(int
the buffer capacity capacity)Returns a new |
| public static BGFXVertexLayout | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static BGFXVertexLayout. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static BGFXVertexLayout | |
| public static BGFXVertexLayout | |
| public static BGFXVertexLayout. | |
| public static BGFXVertexLayout. | |
| protected BGFXVertexLayout | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static BGFXVertexLayout | |
| public static BGFXVertexLayout | |
| public static BGFXVertexLayout. | create(int
the buffer capacity capacity)Returns a new |
| public static BGFXVertexLayout. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static BGFXVertexLayout | |
| public static BGFXVertexLayout. | |
| public int | |
| public BGFXVertexLayout | |
| public static BGFXVertexLayout | |
| public static BGFXVertexLayout. | malloc(int
the buffer capacity capacity)Returns a new |
| public static BGFXVertexLayout | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static BGFXVertexLayout. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static BGFXVertexLayout | |
| public static BGFXVertexLayout | |
| public static BGFXVertexLayout. | |
| public static BGFXVertexLayout. | |
| public static ShortBuffer | |
| public static short | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public static ShortBuffer | |
| public static short | |
| public static void | |
| public static void | |
| public static short | |
| public static void | |
| public ShortBuffer | |
| public short | |
| public BGFXVertexLayout | |
| public BGFXVertexLayout | |
| public BGFXVertexLayout | set(int hash, short stride, ShortBuffer offset, ShortBuffer attributes)
Initializes this struct with the specified values. |
| public BGFXVertexLayout | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public short | |
| public BGFXVertexLayout |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ATTRIBUTES | back to summary |
|---|---|
| public static final int ATTRIBUTES The struct member offsets. | |
| HASH | back to summary |
|---|---|
| public static final int HASH The struct member offsets. | |
| OFFSET | back to summary |
|---|---|
| public static final int OFFSET The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STRIDE | back to summary |
|---|---|
| public static final int STRIDE The struct member offsets. | |
| BGFXVertexLayout | back to summary |
|---|---|
| protected BGFXVertexLayout(long address, ByteBuffer container) | |
| BGFXVertexLayout | back to summary |
|---|---|
| public BGFXVertexLayout(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| attributes | back to summary |
|---|---|
public ShortBuffer attributes()
| |
| attributes | back to summary |
|---|---|
public short attributes(int index)
| |
| attributes | back to summary |
|---|---|
| public BGFXVertexLayout attributes(ShortBuffer value) Copies the specified | |
| attributes | back to summary |
|---|---|
| public BGFXVertexLayout attributes(int index, short value) Sets the specified value at the specified index of the | |
| calloc | back to summary |
|---|---|
| public static BGFXVertexLayout calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static BGFXVertexLayout. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static BGFXVertexLayout calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static BGFXVertexLayout. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static BGFXVertexLayout callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static BGFXVertexLayout callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static BGFXVertexLayout. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static BGFXVertexLayout. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected BGFXVertexLayout create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static BGFXVertexLayout create() Returns a new | |
| create | back to summary |
|---|---|
| public static BGFXVertexLayout create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static BGFXVertexLayout. Returns a new
| |
| create | back to summary |
|---|---|
| public static BGFXVertexLayout. Create a
| |
| createSafe | back to summary |
|---|---|
| public static BGFXVertexLayout createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static BGFXVertexLayout. Like
| |
| hash | back to summary |
|---|---|
public int hash()
| |
| hash | back to summary |
|---|---|
| public BGFXVertexLayout hash(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static BGFXVertexLayout malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static BGFXVertexLayout. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static BGFXVertexLayout malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static BGFXVertexLayout. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static BGFXVertexLayout mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static BGFXVertexLayout mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static BGFXVertexLayout. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static BGFXVertexLayout. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nattributes | back to summary |
|---|---|
| public static ShortBuffer nattributes(long struct) Unsafe version of | |
| nattributes | back to summary |
|---|---|
| public static short nattributes(long struct, int index) Unsafe version of | |
| nattributes | back to summary |
|---|---|
| public static void nattributes(long struct, ShortBuffer value) Unsafe version of | |
| nattributes | back to summary |
|---|---|
| public static void nattributes(long struct, int index, short value) Unsafe version of | |
| nhash | back to summary |
|---|---|
| public static int nhash(long struct) Unsafe version of | |
| nhash | back to summary |
|---|---|
| public static void nhash(long struct, int value) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static ShortBuffer noffset(long struct) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static short noffset(long struct, int index) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static void noffset(long struct, ShortBuffer value) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static void noffset(long struct, int index, short value) Unsafe version of | |
| nstride | back to summary |
|---|---|
| public static short nstride(long struct) Unsafe version of | |
| nstride | back to summary |
|---|---|
| public static void nstride(long struct, short value) Unsafe version of | |
| offset | back to summary |
|---|---|
| public ShortBuffer offset() relative attribute offset from the vertex
| |
| offset | back to summary |
|---|---|
| public short offset(int index) relative attribute offset from the vertex
| |
| offset | back to summary |
|---|---|
| public BGFXVertexLayout offset(ShortBuffer value) Copies the specified | |
| offset | back to summary |
|---|---|
| public BGFXVertexLayout offset(int index, short value) Sets the specified value at the specified index of the | |
| set | back to summary |
|---|---|
| public BGFXVertexLayout set(int hash, short stride, ShortBuffer offset, ShortBuffer attributes) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public BGFXVertexLayout set(BGFXVertexLayout src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| stride | back to summary |
|---|---|
| public short stride() vertex stride
| |
| stride | back to summary |
|---|---|
| public BGFXVertexLayout stride(short value) Sets the specified value to the | |
BGFXVertexLayout structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final BGFXVertexLayout |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ShortBuffer | |
| public short | |
| public BGFXVertexLayout. | |
| public BGFXVertexLayout. | attributes(int index, short value)
Sets the specified value at the specified index of the |
| protected BGFXVertexLayout | |
| public int | |
| public BGFXVertexLayout. | |
| public ShortBuffer | |
| public short | |
| public BGFXVertexLayout. | |
| public BGFXVertexLayout. | offset(int index, short value)
Sets the specified value at the specified index of the |
| protected BGFXVertexLayout. | |
| public short | |
| public BGFXVertexLayout. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final BGFXVertexLayout ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| attributes | back to summary |
|---|---|
public ShortBuffer attributes()
| |
| attributes | back to summary |
|---|---|
public short attributes(int index)
| |
| attributes | back to summary |
|---|---|
| public BGFXVertexLayout. Copies the specified | |
| attributes | back to summary |
|---|---|
| public BGFXVertexLayout. Sets the specified value at the specified index of the | |
| getElementFactory | back to summary |
|---|---|
| protected BGFXVertexLayout getElementFactory() Implements abstract org.
| |
| hash | back to summary |
|---|---|
public int hash()
| |
| hash | back to summary |
|---|---|
| public BGFXVertexLayout. Sets the specified value to the | |
| offset | back to summary |
|---|---|
public ShortBuffer offset()
| |
| offset | back to summary |
|---|---|
public short offset(int index)
| |
| offset | back to summary |
|---|---|
| public BGFXVertexLayout. Copies the specified | |
| offset | back to summary |
|---|---|
| public BGFXVertexLayout. Sets the specified value at the specified index of the | |
| self | back to summary |
|---|---|
| protected BGFXVertexLayout. Implements abstract org.
| |
| stride | back to summary |
|---|---|
public short stride()
| |
| stride | back to summary |
|---|---|
| public BGFXVertexLayout. Sets the specified value to the | |