Package org.lwjgl.assimp
Class AIMaterialProperty
- All Implemented Interfaces:
Pointer
struct aiMaterialProperty {
{@link AIString struct aiString} mKey;
unsigned int mSemantic;
unsigned int mIndex;
unsigned int mDataLength;
aiPropertyTypeInfo mType;
char * mData;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionAIMaterialProperty
(ByteBuffer container) Creates aAIMaterialProperty
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIMaterialProperty
create
(long address) Returns a newAIMaterialProperty
instance for the specified memory address.static AIMaterialProperty.Buffer
create
(long address, int capacity) Create aAIMaterialProperty.Buffer
instance at the specified memory.static @Nullable AIMaterialProperty
createSafe
(long address) static @Nullable AIMaterialProperty.Buffer
createSafe
(long address, int capacity) mData()
int
int
mIndex()
mKey()
int
int
mType()
static ByteBuffer
nmData
(long struct) Unsafe version ofmData
.static int
nmDataLength
(long struct) Unsafe version ofmDataLength()
.static int
nmIndex
(long struct) Unsafe version ofmIndex()
.static AIString
nmKey
(long struct) Unsafe version ofmKey()
.static int
nmSemantic
(long struct) Unsafe version ofmSemantic()
.static int
nmType
(long struct) Unsafe version ofmType()
.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MKEY
public static final int MKEYThe struct member offsets. -
MSEMANTIC
public static final int MSEMANTICThe struct member offsets. -
MINDEX
public static final int MINDEXThe struct member offsets. -
MDATALENGTH
public static final int MDATALENGTHThe struct member offsets. -
MTYPE
public static final int MTYPEThe struct member offsets. -
MDATA
public static final int MDATAThe struct member offsets.
-
-
Constructor Details
-
AIMaterialProperty
Creates aAIMaterialProperty
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<AIMaterialProperty>
-
mKey
- Returns:
- a
AIString
view of themKey
field.
-
mSemantic
public int mSemantic()- Returns:
- the value of the
mSemantic
field.
-
mIndex
public int mIndex()- Returns:
- the value of the
mIndex
field.
-
mDataLength
public int mDataLength()- Returns:
- the value of the
mDataLength
field.
-
mType
public int mType()- Returns:
- the value of the
mType
field.
-
mData
- Returns:
- a
ByteBuffer
view of the data pointed to by themData
field.
-
create
Returns a newAIMaterialProperty
instance for the specified memory address. -
createSafe
-
create
Create aAIMaterialProperty.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nmKey
Unsafe version ofmKey()
. -
nmSemantic
public static int nmSemantic(long struct) Unsafe version ofmSemantic()
. -
nmIndex
public static int nmIndex(long struct) Unsafe version ofmIndex()
. -
nmDataLength
public static int nmDataLength(long struct) Unsafe version ofmDataLength()
. -
nmType
public static int nmType(long struct) Unsafe version ofmType()
. -
nmData
Unsafe version ofmData
.
-