Package org.lwjgl.assimp
Class AIImporterDesc
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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 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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionAIImporterDesc(ByteBuffer container) Creates aAIImporterDescinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIImporterDesccalloc()Returns a newAIImporterDescinstance allocated withmemCalloc.static AIImporterDesc.Buffercalloc(int capacity) Returns a newAIImporterDesc.Bufferinstance allocated withmemCalloc.static AIImporterDesc.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIImporterDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIImporterDesccalloc(MemoryStack stack) Returns a newAIImporterDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIImporterDescDeprecated.static AIImporterDesc.BuffercallocStack(int capacity) Deprecated.static AIImporterDesc.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static AIImporterDesccallocStack(MemoryStack stack) Deprecated.static AIImporterDesccreate()Returns a newAIImporterDescinstance allocated withBufferUtils.static AIImporterDesc.Buffercreate(int capacity) Returns a newAIImporterDesc.Bufferinstance allocated withBufferUtils.static AIImporterDesccreate(long address) Returns a newAIImporterDescinstance for the specified memory address.static AIImporterDesc.Buffercreate(long address, int capacity) Create aAIImporterDesc.Bufferinstance at the specified memory.static @Nullable AIImporterDesccreateSafe(long address) static @Nullable AIImporterDesc.BuffercreateSafe(long address, int capacity) static AIImporterDescmalloc()Returns a newAIImporterDescinstance allocated withmemAlloc.static AIImporterDesc.Buffermalloc(int capacity) Returns a newAIImporterDesc.Bufferinstance allocated withmemAlloc.static AIImporterDesc.Buffermalloc(int capacity, MemoryStack stack) Returns a newAIImporterDesc.Bufferinstance allocated on the specifiedMemoryStack.static AIImporterDescmalloc(MemoryStack stack) Returns a newAIImporterDescinstance allocated on the specifiedMemoryStack.static AIImporterDescDeprecated.static AIImporterDesc.BuffermallocStack(int capacity) Deprecated.static AIImporterDesc.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static AIImporterDescmallocStack(MemoryStack stack) Deprecated.mAuthor()mAuthor(ByteBuffer value) Sets the address of the specified encoded string to themAuthorfield.mComments(ByteBuffer value) Sets the address of the specified encoded string to themCommentsfield.mFileExtensions(ByteBuffer value) Sets the address of the specified encoded string to themFileExtensionsfield.intmFlags()mFlags(int value) Sets the specified value to themFlagsfield.mMaintainer(ByteBuffer value) Sets the address of the specified encoded string to themMaintainerfield.intmMaxMajor(int value) Sets the specified value to themMaxMajorfield.intmMaxMinor(int value) Sets the specified value to themMaxMinorfield.intmMinMajor(int value) Sets the specified value to themMinMajorfield.intmMinMinor(int value) Sets the specified value to themMinMinorfield.mName()mName(ByteBuffer value) Sets the address of the specified encoded string to themNamefield.static ByteBuffernmAuthor(long struct) Unsafe version ofmAuthor().static voidnmAuthor(long struct, ByteBuffer value) Unsafe version ofmAuthor.static StringnmAuthorString(long struct) Unsafe version ofmAuthorString().static ByteBuffernmComments(long struct) Unsafe version ofmComments().static voidnmComments(long struct, ByteBuffer value) Unsafe version ofmComments.static StringnmCommentsString(long struct) Unsafe version ofmCommentsString().static ByteBuffernmFileExtensions(long struct) Unsafe version ofmFileExtensions().static voidnmFileExtensions(long struct, ByteBuffer value) Unsafe version ofmFileExtensions.static StringnmFileExtensionsString(long struct) Unsafe version ofmFileExtensionsString().static intnmFlags(long struct) Unsafe version ofmFlags().static voidnmFlags(long struct, int value) Unsafe version ofmFlags.static ByteBuffernmMaintainer(long struct) Unsafe version ofmMaintainer().static voidnmMaintainer(long struct, ByteBuffer value) Unsafe version ofmMaintainer.static StringnmMaintainerString(long struct) Unsafe version ofmMaintainerString().static intnmMaxMajor(long struct) Unsafe version ofmMaxMajor().static voidnmMaxMajor(long struct, int value) Unsafe version ofmMaxMajor.static intnmMaxMinor(long struct) Unsafe version ofmMaxMinor().static voidnmMaxMinor(long struct, int value) Unsafe version ofmMaxMinor.static intnmMinMajor(long struct) Unsafe version ofmMinMajor().static voidnmMinMajor(long struct, int value) Unsafe version ofmMinMajor.static intnmMinMinor(long struct) Unsafe version ofmMinMinor().static voidnmMinMinor(long struct, int value) Unsafe version ofmMinMinor.static ByteBuffernmName(long struct) Unsafe version ofmName().static voidnmName(long struct, ByteBuffer value) Unsafe version ofmName.static StringnmNameString(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.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. -
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 aAIImporterDescinstance 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<AIImporterDesc>
-
mName
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by themNamefield.
-
mNameString
- Returns:
- the null-terminated string pointed to by the
mNamefield.
-
mAuthor
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by themAuthorfield.
-
mAuthorString
- Returns:
- the null-terminated string pointed to by the
mAuthorfield.
-
mMaintainer
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by themMaintainerfield.
-
mMaintainerString
- Returns:
- the null-terminated string pointed to by the
mMaintainerfield.
-
mComments
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by themCommentsfield.
-
mCommentsString
- Returns:
- the null-terminated string pointed to by the
mCommentsfield.
-
mFlags
public int mFlags()- Returns:
- the value of the
mFlagsfield.
-
mMinMajor
public int mMinMajor()- Returns:
- the value of the
mMinMajorfield.
-
mMinMinor
public int mMinMinor()- Returns:
- the value of the
mMinMinorfield.
-
mMaxMajor
public int mMaxMajor()- Returns:
- the value of the
mMaxMajorfield.
-
mMaxMinor
public int mMaxMinor()- Returns:
- the value of the
mMaxMinorfield.
-
mFileExtensions
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by themFileExtensionsfield.
-
mFileExtensionsString
- Returns:
- the null-terminated string pointed to by the
mFileExtensionsfield.
-
mName
Sets the address of the specified encoded string to themNamefield. -
mAuthor
Sets the address of the specified encoded string to themAuthorfield. -
mMaintainer
Sets the address of the specified encoded string to themMaintainerfield. -
mComments
Sets the address of the specified encoded string to themCommentsfield. -
mFlags
Sets the specified value to themFlagsfield. -
mMinMajor
Sets the specified value to themMinMajorfield. -
mMinMinor
Sets the specified value to themMinMinorfield. -
mMaxMajor
Sets the specified value to themMaxMajorfield. -
mMaxMinor
Sets the specified value to themMaxMinorfield. -
mFileExtensions
Sets the address of the specified encoded string to themFileExtensionsfield. -
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 newAIImporterDescinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIImporterDescinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIImporterDescinstance allocated withBufferUtils. -
create
Returns a newAIImporterDescinstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIImporterDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIImporterDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIImporterDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIImporterDesc.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 newAIImporterDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIImporterDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIImporterDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIImporterDesc.Bufferinstance allocated on the specifiedMemoryStackand 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
-