public class AIImporterDesc
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
mName – Full name of the importer (i.e. Blender3D importer)mAuthor – Original author (left blank if unknown or whole assimp team)mMaintainer – Current maintainer, left blank if the author maintainsmComments – Implementation comments, i.e. unimplemented featuresmFlags – These flags indicate some characteristics common to many importers.mMinMajor – Minimum major format that can be loaded in major.minor style.mMinMinor – Minimum minor format that can be loaded in major.minor style.mMaxMajor – Maximum major format that can be loaded in major.minor style.mMaxMinor – Maximum minor format that can be loaded in major.minor style.mFileExtensions –
List of file extensions this importer can handle. List entries are separated by space characters. All entries are lower case without a leading dot
(i.e. "xml dae" would be a valid value. Note that multiple importers may respond to the same file extension - assimp calls all importers in the order
in which they are registered and each importer gets the opportunity to load the file until one importer "claims" the file. Apart from file extension
checks, importers typically use other methods to quickly reject files (i.e. magic words) so this does not mean that common or generic file extensions
such as XML would be tediously slow.
struct aiImporterDesc {
char const * mName;
char const * mAuthor;
char const * mMaintainer;
char const * mComments;
unsigned int mFlags;
unsigned int mMinMajor;
unsigned int mMinMinor;
unsigned int mMaxMajor;
unsigned int mMaxMinor;
char const * mFileExtensions;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIImporterDesc.Buffer
An array of
AIImporterDesc structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MAUTHOR
The struct member offsets.
|
static int |
MCOMMENTS
The struct member offsets.
|
static int |
MFILEEXTENSIONS
The struct member offsets.
|
static int |
MFLAGS
The struct member offsets.
|
static int |
MMAINTAINER
The struct member offsets.
|
static int |
MMAXMAJOR
The struct member offsets.
|
static int |
MMAXMINOR
The struct member offsets.
|
static int |
MMINMAJOR
The struct member offsets.
|
static int |
MMINMINOR
The struct member offsets.
|
static int |
MNAME
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AIImporterDesc(java.nio.ByteBuffer container)
Creates a
AIImporterDesc instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIImporterDesc |
calloc()
Returns a new
AIImporterDesc instance allocated with memCalloc. |
static AIImporterDesc.Buffer |
calloc(int capacity)
Returns a new
AIImporterDesc.Buffer instance allocated with memCalloc. |
static AIImporterDesc |
callocStack()
Returns a new
AIImporterDesc instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIImporterDesc.Buffer |
callocStack(int capacity)
Returns a new
AIImporterDesc.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIImporterDesc.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIImporterDesc.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIImporterDesc |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIImporterDesc instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIImporterDesc |
create()
Returns a new
AIImporterDesc instance allocated with BufferUtils. |
static AIImporterDesc.Buffer |
create(int capacity)
Returns a new
AIImporterDesc.Buffer instance allocated with BufferUtils. |
static AIImporterDesc |
create(long address)
Returns a new
AIImporterDesc instance for the specified memory address. |
static AIImporterDesc.Buffer |
create(long address,
int capacity)
Create a
AIImporterDesc.Buffer instance at the specified memory. |
static AIImporterDesc |
createSafe(long address)
|
static AIImporterDesc.Buffer |
createSafe(long address,
int capacity)
|
static AIImporterDesc |
malloc()
Returns a new
AIImporterDesc instance allocated with memAlloc. |
static AIImporterDesc.Buffer |
malloc(int capacity)
Returns a new
AIImporterDesc.Buffer instance allocated with memAlloc. |
static AIImporterDesc |
mallocStack()
Returns a new
AIImporterDesc instance allocated on the thread-local MemoryStack. |
static AIImporterDesc.Buffer |
mallocStack(int capacity)
Returns a new
AIImporterDesc.Buffer instance allocated on the thread-local MemoryStack. |
static AIImporterDesc.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIImporterDesc.Buffer instance allocated on the specified MemoryStack. |
static AIImporterDesc |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIImporterDesc instance allocated on the specified MemoryStack. |
java.nio.ByteBuffer |
mAuthor()
Returns a
ByteBuffer view of the null-terminated string pointed to by the mAuthor field. |
AIImporterDesc |
mAuthor(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
mAuthor field. |
java.lang.String |
mAuthorString()
Decodes the null-terminated string pointed to by the
mAuthor field. |
java.nio.ByteBuffer |
mComments()
Returns a
ByteBuffer view of the null-terminated string pointed to by the mComments field. |
AIImporterDesc |
mComments(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
mComments field. |
java.lang.String |
mCommentsString()
Decodes the null-terminated string pointed to by the
mComments field. |
java.nio.ByteBuffer |
mFileExtensions()
Returns a
ByteBuffer view of the null-terminated string pointed to by the mFileExtensions field. |
AIImporterDesc |
mFileExtensions(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
mFileExtensions field. |
java.lang.String |
mFileExtensionsString()
Decodes the null-terminated string pointed to by the
mFileExtensions field. |
int |
mFlags()
Returns the value of the
mFlags field. |
AIImporterDesc |
mFlags(int value)
Sets the specified value to the
mFlags field. |
java.nio.ByteBuffer |
mMaintainer()
Returns a
ByteBuffer view of the null-terminated string pointed to by the mMaintainer field. |
AIImporterDesc |
mMaintainer(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
mMaintainer field. |
java.lang.String |
mMaintainerString()
Decodes the null-terminated string pointed to by the
mMaintainer field. |
int |
mMaxMajor()
Returns the value of the
mMaxMajor field. |
AIImporterDesc |
mMaxMajor(int value)
Sets the specified value to the
mMaxMajor field. |
int |
mMaxMinor()
Returns the value of the
mMaxMinor field. |
AIImporterDesc |
mMaxMinor(int value)
Sets the specified value to the
mMaxMinor field. |
int |
mMinMajor()
Returns the value of the
mMinMajor field. |
AIImporterDesc |
mMinMajor(int value)
Sets the specified value to the
mMinMajor field. |
int |
mMinMinor()
Returns the value of the
mMinMinor field. |
AIImporterDesc |
mMinMinor(int value)
Sets the specified value to the
mMinMinor field. |
java.nio.ByteBuffer |
mName()
Returns a
ByteBuffer view of the null-terminated string pointed to by the mName field. |
AIImporterDesc |
mName(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
mName field. |
java.lang.String |
mNameString()
Decodes the null-terminated string pointed to by the
mName field. |
static java.nio.ByteBuffer |
nmAuthor(long struct)
Unsafe version of
mAuthor(). |
static void |
nmAuthor(long struct,
java.nio.ByteBuffer value)
Unsafe version of
mAuthor. |
static java.lang.String |
nmAuthorString(long struct)
Unsafe version of
mAuthorString(). |
static java.nio.ByteBuffer |
nmComments(long struct)
Unsafe version of
mComments(). |
static void |
nmComments(long struct,
java.nio.ByteBuffer value)
Unsafe version of
mComments. |
static java.lang.String |
nmCommentsString(long struct)
Unsafe version of
mCommentsString(). |
static java.nio.ByteBuffer |
nmFileExtensions(long struct)
Unsafe version of
mFileExtensions(). |
static void |
nmFileExtensions(long struct,
java.nio.ByteBuffer value)
Unsafe version of
mFileExtensions. |
static java.lang.String |
nmFileExtensionsString(long struct)
Unsafe version of
mFileExtensionsString(). |
static int |
nmFlags(long struct)
Unsafe version of
mFlags(). |
static void |
nmFlags(long struct,
int value)
Unsafe version of
mFlags. |
static java.nio.ByteBuffer |
nmMaintainer(long struct)
Unsafe version of
mMaintainer(). |
static void |
nmMaintainer(long struct,
java.nio.ByteBuffer value)
Unsafe version of
mMaintainer. |
static java.lang.String |
nmMaintainerString(long struct)
Unsafe version of
mMaintainerString(). |
static int |
nmMaxMajor(long struct)
Unsafe version of
mMaxMajor(). |
static void |
nmMaxMajor(long struct,
int value)
Unsafe version of
mMaxMajor. |
static int |
nmMaxMinor(long struct)
Unsafe version of
mMaxMinor(). |
static void |
nmMaxMinor(long struct,
int value)
Unsafe version of
mMaxMinor. |
static int |
nmMinMajor(long struct)
Unsafe version of
mMinMajor(). |
static void |
nmMinMajor(long struct,
int value)
Unsafe version of
mMinMajor. |
static int |
nmMinMinor(long struct)
Unsafe version of
mMinMinor(). |
static void |
nmMinMinor(long struct,
int value)
Unsafe version of
mMinMinor. |
static java.nio.ByteBuffer |
nmName(long struct)
Unsafe version of
mName(). |
static void |
nmName(long struct,
java.nio.ByteBuffer value)
Unsafe version of
mName. |
static java.lang.String |
nmNameString(long struct)
Unsafe version of
mNameString(). |
AIImporterDesc |
set(AIImporterDesc src)
Copies the specified struct data to this struct.
|
AIImporterDesc |
set(java.nio.ByteBuffer mName,
java.nio.ByteBuffer mAuthor,
java.nio.ByteBuffer mMaintainer,
java.nio.ByteBuffer mComments,
int mFlags,
int mMinMajor,
int mMinMinor,
int mMaxMajor,
int mMaxMinor,
java.nio.ByteBuffer mFileExtensions)
Initializes this struct with the specified values.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MNAME
public static final int MAUTHOR
public static final int MMAINTAINER
public static final int MCOMMENTS
public static final int MFLAGS
public static final int MMINMAJOR
public static final int MMINMINOR
public static final int MMAXMAJOR
public static final int MMAXMINOR
public static final int MFILEEXTENSIONS
public AIImporterDesc(java.nio.ByteBuffer container)
AIImporterDesc 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 java.nio.ByteBuffer mName()
ByteBuffer view of the null-terminated string pointed to by the mName field.public java.lang.String mNameString()
mName field.public java.nio.ByteBuffer mAuthor()
ByteBuffer view of the null-terminated string pointed to by the mAuthor field.public java.lang.String mAuthorString()
mAuthor field.public java.nio.ByteBuffer mMaintainer()
ByteBuffer view of the null-terminated string pointed to by the mMaintainer field.public java.lang.String mMaintainerString()
mMaintainer field.public java.nio.ByteBuffer mComments()
ByteBuffer view of the null-terminated string pointed to by the mComments field.public java.lang.String mCommentsString()
mComments field.public int mFlags()
mFlags field.public int mMinMajor()
mMinMajor field.public int mMinMinor()
mMinMinor field.public int mMaxMajor()
mMaxMajor field.public int mMaxMinor()
mMaxMinor field.public java.nio.ByteBuffer mFileExtensions()
ByteBuffer view of the null-terminated string pointed to by the mFileExtensions field.public java.lang.String mFileExtensionsString()
mFileExtensions field.public AIImporterDesc mName(java.nio.ByteBuffer value)
mName field.public AIImporterDesc mAuthor(java.nio.ByteBuffer value)
mAuthor field.public AIImporterDesc mMaintainer(java.nio.ByteBuffer value)
mMaintainer field.public AIImporterDesc mComments(java.nio.ByteBuffer value)
mComments field.public AIImporterDesc mFlags(int value)
mFlags field.public AIImporterDesc mMinMajor(int value)
mMinMajor field.public AIImporterDesc mMinMinor(int value)
mMinMinor field.public AIImporterDesc mMaxMajor(int value)
mMaxMajor field.public AIImporterDesc mMaxMinor(int value)
mMaxMinor field.public AIImporterDesc mFileExtensions(java.nio.ByteBuffer value)
mFileExtensions field.public AIImporterDesc set(java.nio.ByteBuffer mName, java.nio.ByteBuffer mAuthor, java.nio.ByteBuffer mMaintainer, java.nio.ByteBuffer mComments, int mFlags, int mMinMajor, int mMinMinor, int mMaxMajor, int mMaxMinor, java.nio.ByteBuffer mFileExtensions)
public AIImporterDesc set(AIImporterDesc src)
src - the source structpublic static AIImporterDesc malloc()
AIImporterDesc instance allocated with memAlloc. The instance must be explicitly freed.public static AIImporterDesc calloc()
AIImporterDesc instance allocated with memCalloc. The instance must be explicitly freed.public static AIImporterDesc create()
AIImporterDesc instance allocated with BufferUtils.public static AIImporterDesc create(long address)
AIImporterDesc instance for the specified memory address.@Nullable public static AIImporterDesc createSafe(long address)
public static AIImporterDesc.Buffer malloc(int capacity)
AIImporterDesc.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIImporterDesc.Buffer calloc(int capacity)
AIImporterDesc.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIImporterDesc.Buffer create(int capacity)
AIImporterDesc.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIImporterDesc.Buffer create(long address, int capacity)
AIImporterDesc.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIImporterDesc.Buffer createSafe(long address, int capacity)
public static AIImporterDesc mallocStack()
AIImporterDesc instance allocated on the thread-local MemoryStack.public static AIImporterDesc callocStack()
AIImporterDesc instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIImporterDesc mallocStack(org.lwjgl.system.MemoryStack stack)
AIImporterDesc instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIImporterDesc callocStack(org.lwjgl.system.MemoryStack stack)
AIImporterDesc instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIImporterDesc.Buffer mallocStack(int capacity)
AIImporterDesc.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIImporterDesc.Buffer callocStack(int capacity)
AIImporterDesc.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIImporterDesc.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIImporterDesc.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIImporterDesc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIImporterDesc.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 java.nio.ByteBuffer nmName(long struct)
mName().public static java.lang.String nmNameString(long struct)
mNameString().public static java.nio.ByteBuffer nmAuthor(long struct)
mAuthor().public static java.lang.String nmAuthorString(long struct)
mAuthorString().public static java.nio.ByteBuffer nmMaintainer(long struct)
mMaintainer().public static java.lang.String nmMaintainerString(long struct)
mMaintainerString().public static java.nio.ByteBuffer nmComments(long struct)
mComments().public static java.lang.String nmCommentsString(long struct)
mCommentsString().public static int nmFlags(long struct)
mFlags().public static int nmMinMajor(long struct)
mMinMajor().public static int nmMinMinor(long struct)
mMinMinor().public static int nmMaxMajor(long struct)
mMaxMajor().public static int nmMaxMinor(long struct)
mMaxMinor().public static java.nio.ByteBuffer nmFileExtensions(long struct)
mFileExtensions().public static java.lang.String nmFileExtensionsString(long struct)
mFileExtensionsString().public static void nmName(long struct,
java.nio.ByteBuffer value)
mName.public static void nmAuthor(long struct,
java.nio.ByteBuffer value)
mAuthor.public static void nmMaintainer(long struct,
java.nio.ByteBuffer value)
mMaintainer.public static void nmComments(long struct,
java.nio.ByteBuffer value)
mComments.public static void nmFlags(long struct,
int value)
mFlags.public static void nmMinMajor(long struct,
int value)
mMinMajor.public static void nmMinMinor(long struct,
int value)
mMinMinor.public static void nmMaxMajor(long struct,
int value)
mMaxMajor.public static void nmMaxMinor(long struct,
int value)
mMaxMinor.public static void nmFileExtensions(long struct,
java.nio.ByteBuffer value)
mFileExtensions.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.