Package org.lwjgl.assimp
Class AIImporterDesc
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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 Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionAIImporterDesc
(ByteBuffer container) Creates aAIImporterDesc
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIImporterDesc
calloc()
Returns a newAIImporterDesc
instance allocated withmemCalloc
.static AIImporterDesc.Buffer
calloc
(int capacity) Returns a newAIImporterDesc.Buffer
instance allocated withmemCalloc
.static AIImporterDesc.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newAIImporterDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIImporterDesc
calloc
(MemoryStack stack) Returns a newAIImporterDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIImporterDesc
Deprecated.static AIImporterDesc.Buffer
callocStack
(int capacity) Deprecated.static AIImporterDesc.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static AIImporterDesc
callocStack
(MemoryStack stack) Deprecated.static AIImporterDesc
create()
Returns a newAIImporterDesc
instance allocated withBufferUtils
.static AIImporterDesc.Buffer
create
(int capacity) Returns a newAIImporterDesc.Buffer
instance allocated withBufferUtils
.static AIImporterDesc
create
(long address) Returns a newAIImporterDesc
instance for the specified memory address.static AIImporterDesc.Buffer
create
(long address, int capacity) Create aAIImporterDesc.Buffer
instance at the specified memory.static AIImporterDesc
createSafe
(long address) static AIImporterDesc.Buffer
createSafe
(long address, int capacity) static AIImporterDesc
malloc()
Returns a newAIImporterDesc
instance allocated withmemAlloc
.static AIImporterDesc.Buffer
malloc
(int capacity) Returns a newAIImporterDesc.Buffer
instance allocated withmemAlloc
.static AIImporterDesc.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newAIImporterDesc.Buffer
instance allocated on the specifiedMemoryStack
.static AIImporterDesc
malloc
(MemoryStack stack) Returns a newAIImporterDesc
instance allocated on the specifiedMemoryStack
.static AIImporterDesc
Deprecated.static AIImporterDesc.Buffer
mallocStack
(int capacity) Deprecated.static AIImporterDesc.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static AIImporterDesc
mallocStack
(MemoryStack stack) Deprecated.mAuthor()
Original author (left blank if unknown or whole assimp team)mAuthor
(ByteBuffer value) Sets the address of the specified encoded string to themAuthor()
field.Original author (left blank if unknown or whole assimp team)Implementation comments, i.e.mComments
(ByteBuffer value) Sets the address of the specified encoded string to themComments()
field.Implementation comments, i.e.List of file extensions this importer can handle.mFileExtensions
(ByteBuffer value) Sets the address of the specified encoded string to themFileExtensions()
field.List of file extensions this importer can handle.int
mFlags()
These flags indicate some characteristics common to many importers.mFlags
(int value) Sets the specified value to themFlags()
field.Current maintainer, left blank if the author maintainsmMaintainer
(ByteBuffer value) Sets the address of the specified encoded string to themMaintainer()
field.Current maintainer, left blank if the author maintainsint
Maximum major format that can be loaded in major.minor style.mMaxMajor
(int value) Sets the specified value to themMaxMajor()
field.int
Maximum minor format that can be loaded in major.minor style.mMaxMinor
(int value) Sets the specified value to themMaxMinor()
field.int
Minimum major format that can be loaded in major.minor style.mMinMajor
(int value) Sets the specified value to themMinMajor()
field.int
Minimum minor format that can be loaded in major.minor style.mMinMinor
(int value) Sets the specified value to themMinMinor()
field.mName()
Full name of the importer (i.e.mName
(ByteBuffer value) Sets the address of the specified encoded string to themName()
field.Full name of the importer (i.e.static ByteBuffer
nmAuthor
(long struct) Unsafe version ofmAuthor()
.static void
nmAuthor
(long struct, ByteBuffer value) Unsafe version ofmAuthor
.static String
nmAuthorString
(long struct) Unsafe version ofmAuthorString()
.static ByteBuffer
nmComments
(long struct) Unsafe version ofmComments()
.static void
nmComments
(long struct, ByteBuffer value) Unsafe version ofmComments
.static String
nmCommentsString
(long struct) Unsafe version ofmCommentsString()
.static ByteBuffer
nmFileExtensions
(long struct) Unsafe version ofmFileExtensions()
.static void
nmFileExtensions
(long struct, ByteBuffer value) Unsafe version ofmFileExtensions
.static String
nmFileExtensionsString
(long struct) Unsafe version ofmFileExtensionsString()
.static int
nmFlags
(long struct) Unsafe version ofmFlags()
.static void
nmFlags
(long struct, int value) Unsafe version ofmFlags
.static ByteBuffer
nmMaintainer
(long struct) Unsafe version ofmMaintainer()
.static void
nmMaintainer
(long struct, ByteBuffer value) Unsafe version ofmMaintainer
.static String
nmMaintainerString
(long struct) Unsafe version ofmMaintainerString()
.static int
nmMaxMajor
(long struct) Unsafe version ofmMaxMajor()
.static void
nmMaxMajor
(long struct, int value) Unsafe version ofmMaxMajor
.static int
nmMaxMinor
(long struct) Unsafe version ofmMaxMinor()
.static void
nmMaxMinor
(long struct, int value) Unsafe version ofmMaxMinor
.static int
nmMinMajor
(long struct) Unsafe version ofmMinMajor()
.static void
nmMinMajor
(long struct, int value) Unsafe version ofmMinMajor
.static int
nmMinMinor
(long struct) Unsafe version ofmMinMinor()
.static void
nmMinMinor
(long struct, int value) Unsafe version ofmMinMinor
.static ByteBuffer
nmName
(long struct) Unsafe version ofmName()
.static void
nmName
(long struct, ByteBuffer value) Unsafe version ofmName
.static String
nmNameString
(long struct) Unsafe version ofmNameString()
.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.set
(AIImporterDesc src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
MNAME
public static final int MNAMEThe struct member offsets. -
MAUTHOR
public static final int MAUTHORThe struct member offsets. -
MMAINTAINER
public static final int MMAINTAINERThe struct member offsets. -
MCOMMENTS
public static final int MCOMMENTSThe struct member offsets. -
MFLAGS
public static final int MFLAGSThe struct member offsets. -
MMINMAJOR
public static final int MMINMAJORThe struct member offsets. -
MMINMINOR
public static final int MMINMINORThe struct member offsets. -
MMAXMAJOR
public static final int MMAXMAJORThe struct member offsets. -
MMAXMINOR
public static final int MMAXMINORThe struct member offsets. -
MFILEEXTENSIONS
public static final int MFILEEXTENSIONSThe struct member offsets.
-
-
Constructor Details
-
AIImporterDesc
Creates aAIImporterDesc
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<AIImporterDesc>
-
mName
Full name of the importer (i.e. Blender3D importer) -
mNameString
Full name of the importer (i.e. Blender3D importer) -
mAuthor
Original author (left blank if unknown or whole assimp team) -
mAuthorString
Original author (left blank if unknown or whole assimp team) -
mMaintainer
Current maintainer, left blank if the author maintains -
mMaintainerString
Current maintainer, left blank if the author maintains -
mComments
Implementation comments, i.e. unimplemented features -
mCommentsString
Implementation comments, i.e. unimplemented features -
mFlags
public int mFlags()These flags indicate some characteristics common to many importers. -
mMinMajor
public int mMinMajor()Minimum major format that can be loaded in major.minor style. -
mMinMinor
public int mMinMinor()Minimum minor format that can be loaded in major.minor style. -
mMaxMajor
public int mMaxMajor()Maximum major format that can be loaded in major.minor style. -
mMaxMinor
public int 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. -
mFileExtensionsString
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. -
mName
Sets the address of the specified encoded string to themName()
field. -
mAuthor
Sets the address of the specified encoded string to themAuthor()
field. -
mMaintainer
Sets the address of the specified encoded string to themMaintainer()
field. -
mComments
Sets the address of the specified encoded string to themComments()
field. -
mFlags
Sets the specified value to themFlags()
field. -
mMinMajor
Sets the specified value to themMinMajor()
field. -
mMinMinor
Sets the specified value to themMinMinor()
field. -
mMaxMajor
Sets the specified value to themMaxMajor()
field. -
mMaxMinor
Sets the specified value to themMaxMinor()
field. -
mFileExtensions
Sets the address of the specified encoded string to themFileExtensions()
field. -
set
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. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newAIImporterDesc
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newAIImporterDesc
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newAIImporterDesc
instance allocated withBufferUtils
. -
create
Returns a newAIImporterDesc
instance for the specified memory address. -
createSafe
-
malloc
Returns a newAIImporterDesc.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newAIImporterDesc.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newAIImporterDesc.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aAIImporterDesc.Buffer
instance 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 newAIImporterDesc
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newAIImporterDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newAIImporterDesc.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newAIImporterDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nmName
Unsafe version ofmName()
. -
nmNameString
Unsafe version ofmNameString()
. -
nmAuthor
Unsafe version ofmAuthor()
. -
nmAuthorString
Unsafe version ofmAuthorString()
. -
nmMaintainer
Unsafe version ofmMaintainer()
. -
nmMaintainerString
Unsafe version ofmMaintainerString()
. -
nmComments
Unsafe version ofmComments()
. -
nmCommentsString
Unsafe version ofmCommentsString()
. -
nmFlags
public static int nmFlags(long struct) Unsafe version ofmFlags()
. -
nmMinMajor
public static int nmMinMajor(long struct) Unsafe version ofmMinMajor()
. -
nmMinMinor
public static int nmMinMinor(long struct) Unsafe version ofmMinMinor()
. -
nmMaxMajor
public static int nmMaxMajor(long struct) Unsafe version ofmMaxMajor()
. -
nmMaxMinor
public static int nmMaxMinor(long struct) Unsafe version ofmMaxMinor()
. -
nmFileExtensions
Unsafe version ofmFileExtensions()
. -
nmFileExtensionsString
Unsafe version ofmFileExtensionsString()
. -
nmName
Unsafe version ofmName
. -
nmAuthor
Unsafe version ofmAuthor
. -
nmMaintainer
Unsafe version ofmMaintainer
. -
nmComments
Unsafe version ofmComments
. -
nmFlags
public static void nmFlags(long struct, int value) Unsafe version ofmFlags
. -
nmMinMajor
public static void nmMinMajor(long struct, int value) Unsafe version ofmMinMajor
. -
nmMinMinor
public static void nmMinMinor(long struct, int value) Unsafe version ofmMinMinor
. -
nmMaxMajor
public static void nmMaxMajor(long struct, int value) Unsafe version ofmMaxMajor
. -
nmMaxMinor
public static void nmMaxMinor(long struct, int value) Unsafe version ofmMaxMinor
. -
nmFileExtensions
Unsafe version ofmFileExtensions
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-