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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionAIImporterDesc
(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 @Nullable AIImporterDesc
createSafe
(long address) static @Nullable 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()
mAuthor
(ByteBuffer value) Sets the address of the specified encoded string to themAuthor
field.mComments
(ByteBuffer value) Sets the address of the specified encoded string to themComments
field.mFileExtensions
(ByteBuffer value) Sets the address of the specified encoded string to themFileExtensions
field.int
mFlags()
mFlags
(int value) Sets the specified value to themFlags
field.mMaintainer
(ByteBuffer value) Sets the address of the specified encoded string to themMaintainer
field.int
mMaxMajor
(int value) Sets the specified value to themMaxMajor
field.int
mMaxMinor
(int value) Sets the specified value to themMaxMinor
field.int
mMinMajor
(int value) Sets the specified value to themMinMajor
field.int
mMinMinor
(int value) Sets the specified value to themMinMinor
field.mName()
mName
(ByteBuffer value) Sets the address of the specified encoded string to themName
field.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
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by themName
field.
-
mNameString
- Returns:
- the null-terminated string pointed to by the
mName
field.
-
mAuthor
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by themAuthor
field.
-
mAuthorString
- Returns:
- the null-terminated string pointed to by the
mAuthor
field.
-
mMaintainer
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by themMaintainer
field.
-
mMaintainerString
- Returns:
- the null-terminated string pointed to by the
mMaintainer
field.
-
mComments
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by themComments
field.
-
mCommentsString
- Returns:
- the null-terminated string pointed to by the
mComments
field.
-
mFlags
public int mFlags()- Returns:
- the value of the
mFlags
field.
-
mMinMajor
public int mMinMajor()- Returns:
- the value of the
mMinMajor
field.
-
mMinMinor
public int mMinMinor()- Returns:
- the value of the
mMinMinor
field.
-
mMaxMajor
public int mMaxMajor()- Returns:
- the value of the
mMaxMajor
field.
-
mMaxMinor
public int mMaxMinor()- Returns:
- the value of the
mMaxMinor
field.
-
mFileExtensions
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by themFileExtensions
field.
-
mFileExtensionsString
- Returns:
- the null-terminated string pointed to by the
mFileExtensions
field.
-
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
-