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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aAIMaterialPropertyinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIMaterialPropertycreate(long address) Returns a newAIMaterialPropertyinstance for the specified memory address.static AIMaterialProperty.Buffercreate(long address, int capacity) Create aAIMaterialProperty.Bufferinstance at the specified memory.static @Nullable AIMaterialPropertycreateSafe(long address) static @Nullable AIMaterialProperty.BuffercreateSafe(long address, int capacity) mData()intintmIndex()mKey()intintmType()static ByteBuffernmData(long struct) Unsafe version ofmData.static intnmDataLength(long struct) Unsafe version ofmDataLength().static intnmIndex(long struct) Unsafe version ofmIndex().static AIStringnmKey(long struct) Unsafe version ofmKey().static intnmSemantic(long struct) Unsafe version ofmSemantic().static intnmType(long struct) Unsafe version ofmType().intsizeof()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 aAIMaterialPropertyinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<AIMaterialProperty>
-
mKey
- Returns:
- a
AIStringview of themKeyfield.
-
mSemantic
public int mSemantic()- Returns:
- the value of the
mSemanticfield.
-
mIndex
public int mIndex()- Returns:
- the value of the
mIndexfield.
-
mDataLength
public int mDataLength()- Returns:
- the value of the
mDataLengthfield.
-
mType
public int mType()- Returns:
- the value of the
mTypefield.
-
mData
- Returns:
- a
ByteBufferview of the data pointed to by themDatafield.
-
create
Returns a newAIMaterialPropertyinstance for the specified memory address. -
createSafe
-
create
Create aAIMaterialProperty.Bufferinstance 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.
-