Top Description Inners Fields Constructors Methods
org.lwjgl.assimp

public Class AIImporterDesc

extends Struct<AIImporterDesc>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct aiImporterDesc
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Meta information about a particular importer. Importers need to fill this structure, but they can freely decide how talkative they are. A common use case for loader meta info is a user interface in which the user can choose between various import/export file formats. Building such an UI by hand means a lot of maintenance as importers / exporters are added to Assimp, so it might be useful to have a common mechanism to query some rough importer characteristics.

Layout


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;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
MAUTHOR

The struct member offsets.

public static final int
MCOMMENTS

The struct member offsets.

public static final int
MFILEEXTENSIONS

The struct member offsets.

public static final int
MFLAGS

The struct member offsets.

public static final int
MMAINTAINER

The struct member offsets.

public static final int
MMAXMAJOR

The struct member offsets.

public static final int
MMAXMINOR

The struct member offsets.

public static final int
MMINMAJOR

The struct member offsets.

public static final int
MMINMINOR

The struct member offsets.

public static final int
MNAME

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
AIImporterDesc(long address, ByteBuffer container)

public
AIImporterDesc(ByteBuffer container)

Creates a AIImporterDesc instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static AIImporterDesc
calloc()

Returns a new AIImporterDesc instance allocated with memCalloc.

public static AIImporterDesc.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new AIImporterDesc.Buffer instance allocated with memCalloc.

public static AIImporterDesc
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new AIImporterDesc instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static AIImporterDesc.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new AIImporterDesc.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static AIImporterDesc
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static AIImporterDesc
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static AIImporterDesc.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static AIImporterDesc.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected AIImporterDesc
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static AIImporterDesc
create()

Returns a new AIImporterDesc instance allocated with BufferUtils.

public static AIImporterDesc
create(long address)

Returns a new AIImporterDesc instance for the specified memory address.

public static AIImporterDesc.Buffer
create(int
the buffer capacity
capacity
)

Returns a new AIImporterDesc.Buffer instance allocated with BufferUtils.

public static AIImporterDesc.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a AIImporterDesc.Buffer instance at the specified memory.

public static AIImporterDesc
createSafe(long address)

Like create, but returns null if address is NULL.

public static AIImporterDesc.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static AIImporterDesc
malloc()

Returns a new AIImporterDesc instance allocated with memAlloc.

public static AIImporterDesc.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new AIImporterDesc.Buffer instance allocated with memAlloc.

public static AIImporterDesc
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new AIImporterDesc instance allocated on the specified MemoryStack.

public static AIImporterDesc.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new AIImporterDesc.Buffer instance allocated on the specified MemoryStack.

public static AIImporterDesc
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static AIImporterDesc
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static AIImporterDesc.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static AIImporterDesc.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public ByteBuffer
mAuthor()

Original author (left blank if unknown or whole assimp team)

public AIImporterDesc
mAuthor(ByteBuffer value)

Sets the address of the specified encoded string to the mAuthor field.

public String
mAuthorString()

Original author (left blank if unknown or whole assimp team)

public ByteBuffer
mComments()

Implementation comments, i.e. unimplemented features

public AIImporterDesc
mComments(ByteBuffer value)

Sets the address of the specified encoded string to the mComments field.

public String
mCommentsString()

Implementation comments, i.e. unimplemented features

public ByteBuffer
mFileExtensions()

List of file extensions this importer can handle.

public AIImporterDesc
mFileExtensions(ByteBuffer value)

Sets the address of the specified encoded string to the mFileExtensions field.

public String
mFileExtensionsString()

List of file extensions this importer can handle.

public int
mFlags()

These flags indicate some characteristics common to many importers.

public AIImporterDesc
mFlags(int value)

Sets the specified value to the mFlags field.

public ByteBuffer
mMaintainer()

Current maintainer, left blank if the author maintains

public AIImporterDesc
mMaintainer(ByteBuffer value)

Sets the address of the specified encoded string to the mMaintainer field.

public String
mMaintainerString()

Current maintainer, left blank if the author maintains

public int
mMaxMajor()

Maximum major format that can be loaded in major.minor style.

public AIImporterDesc
mMaxMajor(int value)

Sets the specified value to the mMaxMajor field.

public int
mMaxMinor()

Maximum minor format that can be loaded in major.minor style.

public AIImporterDesc
mMaxMinor(int value)

Sets the specified value to the mMaxMinor field.

public int
mMinMajor()

Minimum major format that can be loaded in major.minor style.

public AIImporterDesc
mMinMajor(int value)

Sets the specified value to the mMinMajor field.

public int
mMinMinor()

Minimum minor format that can be loaded in major.minor style.

public AIImporterDesc
mMinMinor(int value)

Sets the specified value to the mMinMinor field.

public ByteBuffer
mName()

Full name of the importer (i.e. Blender3D importer)

public AIImporterDesc
mName(ByteBuffer value)

Sets the address of the specified encoded string to the mName field.

public String
mNameString()

Full name of the importer (i.e. Blender3D importer)

public static ByteBuffer
nmAuthor(long struct)

Unsafe version of mAuthor.

public static void
nmAuthor(long struct, ByteBuffer value)

Unsafe version of mAuthor.

public static String
nmAuthorString(long struct)

Unsafe version of mAuthorString.

public static ByteBuffer
nmComments(long struct)

Unsafe version of mComments.

public static void
nmComments(long struct, ByteBuffer value)

Unsafe version of mComments.

public static String
nmCommentsString(long struct)

Unsafe version of mCommentsString.

public static ByteBuffer
nmFileExtensions(long struct)

Unsafe version of mFileExtensions.

public static void
nmFileExtensions(long struct, ByteBuffer value)

Unsafe version of mFileExtensions.

public static String
nmFileExtensionsString(long struct)

Unsafe version of mFileExtensionsString.

public static int
nmFlags(long struct)

Unsafe version of mFlags.

public static void
nmFlags(long struct, int value)

Unsafe version of mFlags.

public static ByteBuffer
nmMaintainer(long struct)

Unsafe version of mMaintainer.

public static void
nmMaintainer(long struct, ByteBuffer value)

Unsafe version of mMaintainer.

public static String
nmMaintainerString(long struct)

Unsafe version of mMaintainerString.

public static int
nmMaxMajor(long struct)

Unsafe version of mMaxMajor.

public static void
nmMaxMajor(long struct, int value)

Unsafe version of mMaxMajor.

public static int
nmMaxMinor(long struct)

Unsafe version of mMaxMinor.

public static void
nmMaxMinor(long struct, int value)

Unsafe version of mMaxMinor.

public static int
nmMinMajor(long struct)

Unsafe version of mMinMajor.

public static void
nmMinMajor(long struct, int value)

Unsafe version of mMinMajor.

public static int
nmMinMinor(long struct)

Unsafe version of mMinMinor.

public static void
nmMinMinor(long struct, int value)

Unsafe version of mMinMinor.

public static ByteBuffer
nmName(long struct)

Unsafe version of mName.

public static void
nmName(long struct, ByteBuffer value)

Unsafe version of mName.

public static String
nmNameString(long struct)

Unsafe version of mNameString.

public AIImporterDesc
set(ByteBuffer mName, ByteBuffer mAuthor, ByteBuffer mMaintainer, ByteBuffer mComments, int mFlags, int mMinMajor, int mMinMinor, int mMaxMajor, int mMaxMinor, ByteBuffer mFileExtensions)

Initializes this struct with the specified values.

public AIImporterDesc

Returns:

this struct
set
(AIImporterDesc
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate