public class AIVertexWeight
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
mVertexId – Index of the vertex which is influenced by the bone.mWeight – The strength of the influence in the range (0...1). The influence from all bones at one vertex amounts to 1.
struct aiVertexWeight {
unsigned int mVertexId;
float mWeight;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIVertexWeight.Buffer
An array of
AIVertexWeight structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MVERTEXID
The struct member offsets.
|
static int |
MWEIGHT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AIVertexWeight(java.nio.ByteBuffer container)
Creates a
AIVertexWeight instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIVertexWeight |
calloc()
Returns a new
AIVertexWeight instance allocated with memCalloc. |
static AIVertexWeight.Buffer |
calloc(int capacity)
Returns a new
AIVertexWeight.Buffer instance allocated with memCalloc. |
static AIVertexWeight |
callocStack()
Returns a new
AIVertexWeight instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIVertexWeight.Buffer |
callocStack(int capacity)
Returns a new
AIVertexWeight.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIVertexWeight.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIVertexWeight.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIVertexWeight |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIVertexWeight instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIVertexWeight |
create()
Returns a new
AIVertexWeight instance allocated with BufferUtils. |
static AIVertexWeight.Buffer |
create(int capacity)
Returns a new
AIVertexWeight.Buffer instance allocated with BufferUtils. |
static AIVertexWeight |
create(long address)
Returns a new
AIVertexWeight instance for the specified memory address. |
static AIVertexWeight.Buffer |
create(long address,
int capacity)
Create a
AIVertexWeight.Buffer instance at the specified memory. |
static AIVertexWeight |
createSafe(long address)
|
static AIVertexWeight.Buffer |
createSafe(long address,
int capacity)
|
static AIVertexWeight |
malloc()
Returns a new
AIVertexWeight instance allocated with memAlloc. |
static AIVertexWeight.Buffer |
malloc(int capacity)
Returns a new
AIVertexWeight.Buffer instance allocated with memAlloc. |
static AIVertexWeight |
mallocStack()
Returns a new
AIVertexWeight instance allocated on the thread-local MemoryStack. |
static AIVertexWeight.Buffer |
mallocStack(int capacity)
Returns a new
AIVertexWeight.Buffer instance allocated on the thread-local MemoryStack. |
static AIVertexWeight.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIVertexWeight.Buffer instance allocated on the specified MemoryStack. |
static AIVertexWeight |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIVertexWeight instance allocated on the specified MemoryStack. |
int |
mVertexId()
Returns the value of the
mVertexId field. |
AIVertexWeight |
mVertexId(int value)
Sets the specified value to the
mVertexId field. |
float |
mWeight()
Returns the value of the
mWeight field. |
AIVertexWeight |
mWeight(float value)
Sets the specified value to the
mWeight field. |
static int |
nmVertexId(long struct)
Unsafe version of
mVertexId(). |
static void |
nmVertexId(long struct,
int value)
Unsafe version of
mVertexId. |
static float |
nmWeight(long struct)
Unsafe version of
mWeight(). |
static void |
nmWeight(long struct,
float value)
Unsafe version of
mWeight. |
AIVertexWeight |
set(AIVertexWeight src)
Copies the specified struct data to this struct.
|
AIVertexWeight |
set(int mVertexId,
float mWeight)
Initializes this struct with the specified values.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MVERTEXID
public static final int MWEIGHT
public AIVertexWeight(java.nio.ByteBuffer container)
AIVertexWeight instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int mVertexId()
mVertexId field.public float mWeight()
mWeight field.public AIVertexWeight mVertexId(int value)
mVertexId field.public AIVertexWeight mWeight(float value)
mWeight field.public AIVertexWeight set(int mVertexId, float mWeight)
public AIVertexWeight set(AIVertexWeight src)
src - the source structpublic static AIVertexWeight malloc()
AIVertexWeight instance allocated with memAlloc. The instance must be explicitly freed.public static AIVertexWeight calloc()
AIVertexWeight instance allocated with memCalloc. The instance must be explicitly freed.public static AIVertexWeight create()
AIVertexWeight instance allocated with BufferUtils.public static AIVertexWeight create(long address)
AIVertexWeight instance for the specified memory address.@Nullable public static AIVertexWeight createSafe(long address)
public static AIVertexWeight.Buffer malloc(int capacity)
AIVertexWeight.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIVertexWeight.Buffer calloc(int capacity)
AIVertexWeight.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIVertexWeight.Buffer create(int capacity)
AIVertexWeight.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIVertexWeight.Buffer create(long address, int capacity)
AIVertexWeight.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIVertexWeight.Buffer createSafe(long address, int capacity)
public static AIVertexWeight mallocStack()
AIVertexWeight instance allocated on the thread-local MemoryStack.public static AIVertexWeight callocStack()
AIVertexWeight instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIVertexWeight mallocStack(org.lwjgl.system.MemoryStack stack)
AIVertexWeight instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIVertexWeight callocStack(org.lwjgl.system.MemoryStack stack)
AIVertexWeight instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIVertexWeight.Buffer mallocStack(int capacity)
AIVertexWeight.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIVertexWeight.Buffer callocStack(int capacity)
AIVertexWeight.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIVertexWeight.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIVertexWeight.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIVertexWeight.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIVertexWeight.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nmVertexId(long struct)
mVertexId().public static float nmWeight(long struct)
mWeight().public static void nmVertexId(long struct,
int value)
mVertexId.public static void nmWeight(long struct,
float value)
mWeight.Copyright LWJGL. All Rights Reserved. License terms.