Material data is stored using a key-value structure. A single key-value pair is called a 'material property'. C++ users should use the provided member
functions of aiMaterial to process material properties, C users have to stick with the aiMaterialGetXXX family of unbound functions.
The library defines a set of standard keys (AI_MATKEY_XXX).
struct aiMaterial {
struct aiMaterialProperty ** mProperties;
unsigned int mNumProperties;
unsigned int mNumAllocated;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | AIMaterial.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | MNUMALLOCATED
The struct member offsets. |
| public static final int | MNUMPROPERTIES
The struct member offsets. |
| public static final int | MPROPERTIES
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | AIMaterial(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static AIMaterial | |
| public static AIMaterial. | calloc(int
the buffer capacity capacity)Returns a new |
| public static AIMaterial | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AIMaterial. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AIMaterial | |
| public static AIMaterial | |
| public static AIMaterial. | |
| public static AIMaterial. | |
| protected AIMaterial | 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 AIMaterial | |
| public static AIMaterial | |
| public static AIMaterial. | create(int
the buffer capacity capacity)Returns a new |
| public static AIMaterial. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static AIMaterial | |
| public static AIMaterial. | |
| public static AIMaterial | |
| public static AIMaterial. | malloc(int
the buffer capacity capacity)Returns a new |
| public static AIMaterial | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AIMaterial. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AIMaterial | |
| public static AIMaterial | |
| public static AIMaterial. | |
| public static AIMaterial. | |
| public int | |
| public AIMaterial | |
| public int | |
| public PointerBuffer | |
| public AIMaterial | mProperties(PointerBuffer value)
Sets the address of the specified |
| public static int | |
| public static void | |
| public static int | |
| public static void | nmNumProperties(long struct, int value)
Sets the specified value to the |
| public static PointerBuffer | |
| public static void | |
| public AIMaterial | |
| public AIMaterial | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| MNUMALLOCATED | back to summary |
|---|---|
| public static final int MNUMALLOCATED The struct member offsets. | |
| MNUMPROPERTIES | back to summary |
|---|---|
| public static final int MNUMPROPERTIES The struct member offsets. | |
| MPROPERTIES | back to summary |
|---|---|
| public static final int MPROPERTIES The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| AIMaterial | back to summary |
|---|---|
| protected AIMaterial(long address, ByteBuffer container) | |
| AIMaterial | back to summary |
|---|---|
| public AIMaterial(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static AIMaterial calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static AIMaterial. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static AIMaterial calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static AIMaterial. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static AIMaterial callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static AIMaterial callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static AIMaterial. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static AIMaterial. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected AIMaterial create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static AIMaterial create() Returns a new | |
| create | back to summary |
|---|---|
| public static AIMaterial create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static AIMaterial. Returns a new
| |
| create | back to summary |
|---|---|
| public static AIMaterial. Create a
| |
| createSafe | back to summary |
|---|---|
| public static AIMaterial createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static AIMaterial. Like
| |
| malloc | back to summary |
|---|---|
| public static AIMaterial malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static AIMaterial. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static AIMaterial malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static AIMaterial. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static AIMaterial mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static AIMaterial mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static AIMaterial. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static AIMaterial. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mNumAllocated | back to summary |
|---|---|
| public int mNumAllocated() Storage allocated
| |
| mNumAllocated | back to summary |
|---|---|
| public AIMaterial mNumAllocated(int value) Sets the specified value to the | |
| mNumProperties | back to summary |
|---|---|
| public int mNumProperties() Number of properties in the data base
| |
| mProperties | back to summary |
|---|---|
| public PointerBuffer mProperties() List of all material properties loaded.
| |
| mProperties | back to summary |
|---|---|
| public AIMaterial mProperties(PointerBuffer value) Sets the address of the specified | |
| nmNumAllocated | back to summary |
|---|---|
| public static int nmNumAllocated(long struct) Unsafe version of | |
| nmNumAllocated | back to summary |
|---|---|
| public static void nmNumAllocated(long struct, int value) Unsafe version of | |
| nmNumProperties | back to summary |
|---|---|
| public static int nmNumProperties(long struct) Unsafe version of | |
| nmNumProperties | back to summary |
|---|---|
| public static void nmNumProperties(long struct, int value) Sets the specified value to the | |
| nmProperties | back to summary |
|---|---|
| public static PointerBuffer nmProperties(long struct) Unsafe version of | |
| nmProperties | back to summary |
|---|---|
| public static void nmProperties(long struct, PointerBuffer value) Unsafe version of | |
| set | back to summary |
|---|---|
| public AIMaterial set(PointerBuffer mProperties, int mNumAllocated) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public AIMaterial set(AIMaterial src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
AIMaterial structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final AIMaterial |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected AIMaterial | |
| public int | |
| public AIMaterial. | |
| public int | |
| public PointerBuffer | |
| public AIMaterial. | mProperties(PointerBuffer value)
Sets the address of the specified |
| protected AIMaterial. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final AIMaterial 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) | |
| getElementFactory | back to summary |
|---|---|
| protected AIMaterial getElementFactory() Implements abstract org.
| |
| mNumAllocated | back to summary |
|---|---|
public int mNumAllocated()
| |
| mNumAllocated | back to summary |
|---|---|
| public AIMaterial. Sets the specified value to the | |
| mNumProperties | back to summary |
|---|---|
public int mNumProperties()
| |
| mProperties | back to summary |
|---|---|
public PointerBuffer mProperties()
| |
| mProperties | back to summary |
|---|---|
| public AIMaterial. Sets the address of the specified | |
| self | back to summary |
|---|---|
| protected AIMaterial. Implements abstract org.
| |