Package org.lwjgl.assimp
Class AIMaterial
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct aiMaterial {
{@link AIMaterialProperty struct aiMaterialProperty} ** mProperties;
unsigned int mNumProperties;
unsigned int mNumAllocated;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionAIMaterial(ByteBuffer container) Creates aAIMaterialinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIMaterialcalloc()Returns a newAIMaterialinstance allocated withmemCalloc.static AIMaterial.Buffercalloc(int capacity) Returns a newAIMaterial.Bufferinstance allocated withmemCalloc.static AIMaterial.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIMaterial.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMaterialcalloc(MemoryStack stack) Returns a newAIMaterialinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMaterialDeprecated.static AIMaterial.BuffercallocStack(int capacity) Deprecated.static AIMaterial.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static AIMaterialcallocStack(MemoryStack stack) Deprecated.static AIMaterialcreate()Returns a newAIMaterialinstance allocated withBufferUtils.static AIMaterial.Buffercreate(int capacity) Returns a newAIMaterial.Bufferinstance allocated withBufferUtils.static AIMaterialcreate(long address) Returns a newAIMaterialinstance for the specified memory address.static AIMaterial.Buffercreate(long address, int capacity) Create aAIMaterial.Bufferinstance at the specified memory.static @Nullable AIMaterialcreateSafe(long address) static @Nullable AIMaterial.BuffercreateSafe(long address, int capacity) static AIMaterialmalloc()Returns a newAIMaterialinstance allocated withmemAlloc.static AIMaterial.Buffermalloc(int capacity) Returns a newAIMaterial.Bufferinstance allocated withmemAlloc.static AIMaterial.Buffermalloc(int capacity, MemoryStack stack) Returns a newAIMaterial.Bufferinstance allocated on the specifiedMemoryStack.static AIMaterialmalloc(MemoryStack stack) Returns a newAIMaterialinstance allocated on the specifiedMemoryStack.static AIMaterialDeprecated.static AIMaterial.BuffermallocStack(int capacity) Deprecated.static AIMaterial.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static AIMaterialmallocStack(MemoryStack stack) Deprecated.intmNumAllocated(int value) Sets the specified value to themNumAllocatedfield.intmProperties(PointerBuffer value) Sets the address of the specifiedPointerBufferto themPropertiesfield.static intnmNumAllocated(long struct) Unsafe version ofmNumAllocated().static voidnmNumAllocated(long struct, int value) Unsafe version ofmNumAllocated.static intnmNumProperties(long struct) Unsafe version ofmNumProperties().static voidnmNumProperties(long struct, int value) Sets the specified value to themNumPropertiesfield of the specifiedstruct.static PointerBuffernmProperties(long struct) Unsafe version ofmProperties.static voidnmProperties(long struct, PointerBuffer value) Unsafe version ofmProperties.set(AIMaterial src) Copies the specified struct data to this struct.set(PointerBuffer mProperties, int mNumAllocated) Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MPROPERTIES
public static final int MPROPERTIESThe struct member offsets. -
MNUMPROPERTIES
public static final int MNUMPROPERTIESThe struct member offsets. -
MNUMALLOCATED
public static final int MNUMALLOCATEDThe struct member offsets.
-
-
Constructor Details
-
AIMaterial
Creates aAIMaterialinstance 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<AIMaterial>
-
mProperties
- Returns:
- a
PointerBufferview of the data pointed to by themPropertiesfield.
-
mNumProperties
public int mNumProperties()- Returns:
- the value of the
mNumPropertiesfield.
-
mNumAllocated
public int mNumAllocated()- Returns:
- the value of the
mNumAllocatedfield.
-
mProperties
Sets the address of the specifiedPointerBufferto themPropertiesfield. -
mNumAllocated
Sets the specified value to themNumAllocatedfield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newAIMaterialinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIMaterialinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIMaterialinstance allocated withBufferUtils. -
create
Returns a newAIMaterialinstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIMaterial.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIMaterial.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIMaterial.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIMaterial.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newAIMaterialinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIMaterialinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIMaterial.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIMaterial.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmProperties
Unsafe version ofmProperties. -
nmNumProperties
public static int nmNumProperties(long struct) Unsafe version ofmNumProperties(). -
nmNumAllocated
public static int nmNumAllocated(long struct) Unsafe version ofmNumAllocated(). -
nmProperties
Unsafe version ofmProperties. -
nmNumProperties
public static void nmNumProperties(long struct, int value) Sets the specified value to themNumPropertiesfield of the specifiedstruct. -
nmNumAllocated
public static void nmNumAllocated(long struct, int value) Unsafe version ofmNumAllocated. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-