public class AIExportFormatDesc
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
GetExportFormatCount to learn how many export formats the current Assimp build supports and
GetExportFormatDescription to retrieve a description of an export format option.
id –
a short string ID to uniquely identify the export format. Use this ID string to specify which file format you want to export to when calling
ExportScene. Example: "dae" or "obj"description – A short description of the file format to present to users. Useful if you want to allow the user to select an export format.fileExtension – Recommended file extension for the exported file in lower case.
struct aiExportFormatDesc {
char const * id;
char const * description;
char const * fileExtension;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIExportFormatDesc.Buffer
An array of
AIExportFormatDesc structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DESCRIPTION
The struct member offsets.
|
static int |
FILEEXTENSION
The struct member offsets.
|
static int |
ID
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AIExportFormatDesc(java.nio.ByteBuffer container)
Creates a
AIExportFormatDesc instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIExportFormatDesc |
calloc()
Returns a new
AIExportFormatDesc instance allocated with memCalloc. |
static AIExportFormatDesc.Buffer |
calloc(int capacity)
Returns a new
AIExportFormatDesc.Buffer instance allocated with memCalloc. |
static AIExportFormatDesc |
callocStack()
Returns a new
AIExportFormatDesc instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIExportFormatDesc.Buffer |
callocStack(int capacity)
Returns a new
AIExportFormatDesc.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIExportFormatDesc.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIExportFormatDesc.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIExportFormatDesc |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIExportFormatDesc instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIExportFormatDesc |
create()
Returns a new
AIExportFormatDesc instance allocated with BufferUtils. |
static AIExportFormatDesc.Buffer |
create(int capacity)
Returns a new
AIExportFormatDesc.Buffer instance allocated with BufferUtils. |
static AIExportFormatDesc |
create(long address)
Returns a new
AIExportFormatDesc instance for the specified memory address. |
static AIExportFormatDesc.Buffer |
create(long address,
int capacity)
Create a
AIExportFormatDesc.Buffer instance at the specified memory. |
static AIExportFormatDesc |
createSafe(long address)
|
static AIExportFormatDesc.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
description()
Returns a
ByteBuffer view of the null-terminated string pointed to by the description field. |
AIExportFormatDesc |
description(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
description field. |
java.lang.String |
descriptionString()
Decodes the null-terminated string pointed to by the
description field. |
java.nio.ByteBuffer |
fileExtension()
Returns a
ByteBuffer view of the null-terminated string pointed to by the fileExtension field. |
AIExportFormatDesc |
fileExtension(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
fileExtension field. |
java.lang.String |
fileExtensionString()
Decodes the null-terminated string pointed to by the
fileExtension field. |
java.nio.ByteBuffer |
id()
Returns a
ByteBuffer view of the null-terminated string pointed to by the id field. |
AIExportFormatDesc |
id(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
id field. |
java.lang.String |
idString()
Decodes the null-terminated string pointed to by the
id field. |
static AIExportFormatDesc |
malloc()
Returns a new
AIExportFormatDesc instance allocated with memAlloc. |
static AIExportFormatDesc.Buffer |
malloc(int capacity)
Returns a new
AIExportFormatDesc.Buffer instance allocated with memAlloc. |
static AIExportFormatDesc |
mallocStack()
Returns a new
AIExportFormatDesc instance allocated on the thread-local MemoryStack. |
static AIExportFormatDesc.Buffer |
mallocStack(int capacity)
Returns a new
AIExportFormatDesc.Buffer instance allocated on the thread-local MemoryStack. |
static AIExportFormatDesc.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIExportFormatDesc.Buffer instance allocated on the specified MemoryStack. |
static AIExportFormatDesc |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIExportFormatDesc instance allocated on the specified MemoryStack. |
static java.nio.ByteBuffer |
ndescription(long struct)
Unsafe version of
description(). |
static void |
ndescription(long struct,
java.nio.ByteBuffer value)
Unsafe version of
description. |
static java.lang.String |
ndescriptionString(long struct)
Unsafe version of
descriptionString(). |
static java.nio.ByteBuffer |
nfileExtension(long struct)
Unsafe version of
fileExtension(). |
static void |
nfileExtension(long struct,
java.nio.ByteBuffer value)
Unsafe version of
fileExtension. |
static java.lang.String |
nfileExtensionString(long struct)
Unsafe version of
fileExtensionString(). |
static java.nio.ByteBuffer |
nid(long struct)
Unsafe version of
id(). |
static void |
nid(long struct,
java.nio.ByteBuffer value)
Unsafe version of
id. |
static java.lang.String |
nidString(long struct)
Unsafe version of
idString(). |
AIExportFormatDesc |
set(AIExportFormatDesc src)
Copies the specified struct data to this struct.
|
AIExportFormatDesc |
set(java.nio.ByteBuffer id,
java.nio.ByteBuffer description,
java.nio.ByteBuffer fileExtension)
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 ID
public static final int DESCRIPTION
public static final int FILEEXTENSION
public AIExportFormatDesc(java.nio.ByteBuffer container)
AIExportFormatDesc 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 id()
ByteBuffer view of the null-terminated string pointed to by the id field.public java.lang.String idString()
id field.public java.nio.ByteBuffer description()
ByteBuffer view of the null-terminated string pointed to by the description field.public java.lang.String descriptionString()
description field.public java.nio.ByteBuffer fileExtension()
ByteBuffer view of the null-terminated string pointed to by the fileExtension field.public java.lang.String fileExtensionString()
fileExtension field.public AIExportFormatDesc id(java.nio.ByteBuffer value)
id field.public AIExportFormatDesc description(java.nio.ByteBuffer value)
description field.public AIExportFormatDesc fileExtension(java.nio.ByteBuffer value)
fileExtension field.public AIExportFormatDesc set(java.nio.ByteBuffer id, java.nio.ByteBuffer description, java.nio.ByteBuffer fileExtension)
public AIExportFormatDesc set(AIExportFormatDesc src)
src - the source structpublic static AIExportFormatDesc malloc()
AIExportFormatDesc instance allocated with memAlloc. The instance must be explicitly freed.public static AIExportFormatDesc calloc()
AIExportFormatDesc instance allocated with memCalloc. The instance must be explicitly freed.public static AIExportFormatDesc create()
AIExportFormatDesc instance allocated with BufferUtils.public static AIExportFormatDesc create(long address)
AIExportFormatDesc instance for the specified memory address.@Nullable public static AIExportFormatDesc createSafe(long address)
public static AIExportFormatDesc.Buffer malloc(int capacity)
AIExportFormatDesc.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIExportFormatDesc.Buffer calloc(int capacity)
AIExportFormatDesc.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIExportFormatDesc.Buffer create(int capacity)
AIExportFormatDesc.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIExportFormatDesc.Buffer create(long address, int capacity)
AIExportFormatDesc.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIExportFormatDesc.Buffer createSafe(long address, int capacity)
public static AIExportFormatDesc mallocStack()
AIExportFormatDesc instance allocated on the thread-local MemoryStack.public static AIExportFormatDesc callocStack()
AIExportFormatDesc instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIExportFormatDesc mallocStack(org.lwjgl.system.MemoryStack stack)
AIExportFormatDesc instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIExportFormatDesc callocStack(org.lwjgl.system.MemoryStack stack)
AIExportFormatDesc instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIExportFormatDesc.Buffer mallocStack(int capacity)
AIExportFormatDesc.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIExportFormatDesc.Buffer callocStack(int capacity)
AIExportFormatDesc.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIExportFormatDesc.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIExportFormatDesc.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIExportFormatDesc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIExportFormatDesc.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 nid(long struct)
id().public static java.lang.String nidString(long struct)
idString().public static java.nio.ByteBuffer ndescription(long struct)
description().public static java.lang.String ndescriptionString(long struct)
descriptionString().public static java.nio.ByteBuffer nfileExtension(long struct)
fileExtension().public static java.lang.String nfileExtensionString(long struct)
fileExtensionString().public static void nid(long struct,
java.nio.ByteBuffer value)
id.public static void ndescription(long struct,
java.nio.ByteBuffer value)
description.public static void nfileExtension(long struct,
java.nio.ByteBuffer value)
fileExtension.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.