Package org.lwjgl.assimp
Class AIExportFormatDesc
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIExportFormatDesc
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class AIExportFormatDesc extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes an file format which Assimp can export to. UseGetExportFormatCountto learn how many export-formats are supported by the current Assimp-build andGetExportFormatDescriptionto retrieve the description of the export format option.Layout
struct aiExportFormatDesc { char const *id(); char const *description(); char const *fileExtension(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAIExportFormatDesc.BufferAn array ofAIExportFormatDescstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDESCRIPTION
FILEEXTENSION
IDThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description AIExportFormatDesc(java.nio.ByteBuffer container)Creates aAIExportFormatDescinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AIExportFormatDesccalloc()Returns a newAIExportFormatDescinstance allocated withmemCalloc.static AIExportFormatDesc.Buffercalloc(int capacity)Returns a newAIExportFormatDesc.Bufferinstance allocated withmemCalloc.static AIExportFormatDesc.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIExportFormatDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIExportFormatDesccalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIExportFormatDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIExportFormatDesccallocStack()Deprecated.static AIExportFormatDesc.BuffercallocStack(int capacity)Deprecated.static AIExportFormatDesc.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIExportFormatDesccallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static AIExportFormatDesccreate()Returns a newAIExportFormatDescinstance allocated withBufferUtils.static AIExportFormatDesc.Buffercreate(int capacity)Returns a newAIExportFormatDesc.Bufferinstance allocated withBufferUtils.static AIExportFormatDesccreate(long address)Returns a newAIExportFormatDescinstance for the specified memory address.static AIExportFormatDesc.Buffercreate(long address, int capacity)Create aAIExportFormatDesc.Bufferinstance at the specified memory.static AIExportFormatDesccreateSafe(long address)static AIExportFormatDesc.BuffercreateSafe(long address, int capacity)java.nio.ByteBufferdescription()A short description of the file format to present to users.AIExportFormatDescdescription(java.nio.ByteBuffer value)Sets the address of the specified encoded string to thedescription()field.java.lang.StringdescriptionString()A short description of the file format to present to users.java.nio.ByteBufferfileExtension()Recommended file extension for the exported file in lower case.AIExportFormatDescfileExtension(java.nio.ByteBuffer value)Sets the address of the specified encoded string to thefileExtension()field.java.lang.StringfileExtensionString()Recommended file extension for the exported file in lower case.java.nio.ByteBufferid()a short string ID to uniquely identify the export format.AIExportFormatDescid(java.nio.ByteBuffer value)Sets the address of the specified encoded string to theid()field.java.lang.StringidString()a short string ID to uniquely identify the export format.static AIExportFormatDescmalloc()Returns a newAIExportFormatDescinstance allocated withmemAlloc.static AIExportFormatDesc.Buffermalloc(int capacity)Returns a newAIExportFormatDesc.Bufferinstance allocated withmemAlloc.static AIExportFormatDesc.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIExportFormatDesc.Bufferinstance allocated on the specifiedMemoryStack.static AIExportFormatDescmalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIExportFormatDescinstance allocated on the specifiedMemoryStack.static AIExportFormatDescmallocStack()Deprecated.static AIExportFormatDesc.BuffermallocStack(int capacity)Deprecated.static AIExportFormatDesc.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIExportFormatDescmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static java.nio.ByteBufferndescription(long struct)Unsafe version ofdescription().static voidndescription(long struct, java.nio.ByteBuffer value)Unsafe version ofdescription.static java.lang.StringndescriptionString(long struct)Unsafe version ofdescriptionString().static java.nio.ByteBuffernfileExtension(long struct)Unsafe version offileExtension().static voidnfileExtension(long struct, java.nio.ByteBuffer value)Unsafe version offileExtension.static java.lang.StringnfileExtensionString(long struct)Unsafe version offileExtensionString().static java.nio.ByteBuffernid(long struct)Unsafe version ofid().static voidnid(long struct, java.nio.ByteBuffer value)Unsafe version ofid.static java.lang.StringnidString(long struct)Unsafe version ofidString().AIExportFormatDescset(java.nio.ByteBuffer id, java.nio.ByteBuffer description, java.nio.ByteBuffer fileExtension)Initializes this struct with the specified values.AIExportFormatDescset(AIExportFormatDesc src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
AIExportFormatDesc
public AIExportFormatDesc(java.nio.ByteBuffer container)
Creates aAIExportFormatDescinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
id, idString
public java.nio.ByteBuffer id() public java.lang.String idString()
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 callingExportScene. Example: "dae" or "obj"
-
description, descriptionString
public java.nio.ByteBuffer description() public java.lang.String descriptionString()
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, fileExtensionString
public java.nio.ByteBuffer fileExtension() public java.lang.String fileExtensionString()
Recommended file extension for the exported file in lower case.
-
id
public AIExportFormatDesc id(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to theid()field.
-
description
public AIExportFormatDesc description(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thedescription()field.
-
fileExtension
public AIExportFormatDesc fileExtension(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thefileExtension()field.
-
set
public AIExportFormatDesc set(java.nio.ByteBuffer id, java.nio.ByteBuffer description, java.nio.ByteBuffer fileExtension)
Initializes this struct with the specified values.
-
set
public AIExportFormatDesc set(AIExportFormatDesc src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static AIExportFormatDesc malloc()
Returns a newAIExportFormatDescinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static AIExportFormatDesc calloc()
Returns a newAIExportFormatDescinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static AIExportFormatDesc create()
Returns a newAIExportFormatDescinstance allocated withBufferUtils.
-
create
public static AIExportFormatDesc create(long address)
Returns a newAIExportFormatDescinstance for the specified memory address.
-
createSafe
@Nullable public static AIExportFormatDesc createSafe(long address)
-
malloc
public static AIExportFormatDesc.Buffer malloc(int capacity)
Returns a newAIExportFormatDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static AIExportFormatDesc.Buffer calloc(int capacity)
Returns a newAIExportFormatDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static AIExportFormatDesc.Buffer create(int capacity)
Returns a newAIExportFormatDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static AIExportFormatDesc.Buffer create(long address, int capacity)
Create aAIExportFormatDesc.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static AIExportFormatDesc.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static AIExportFormatDesc mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIExportFormatDesc callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIExportFormatDesc mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIExportFormatDesc callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIExportFormatDesc.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AIExportFormatDesc.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static AIExportFormatDesc.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AIExportFormatDesc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static AIExportFormatDesc malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIExportFormatDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static AIExportFormatDesc calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIExportFormatDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static AIExportFormatDesc.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIExportFormatDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static AIExportFormatDesc.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIExportFormatDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nid
public static java.nio.ByteBuffer nid(long struct)
Unsafe version ofid().
-
nidString
public static java.lang.String nidString(long struct)
Unsafe version ofidString().
-
ndescription
public static java.nio.ByteBuffer ndescription(long struct)
Unsafe version ofdescription().
-
ndescriptionString
public static java.lang.String ndescriptionString(long struct)
Unsafe version ofdescriptionString().
-
nfileExtension
public static java.nio.ByteBuffer nfileExtension(long struct)
Unsafe version offileExtension().
-
nfileExtensionString
public static java.lang.String nfileExtensionString(long struct)
Unsafe version offileExtensionString().
-
nid
public static void nid(long struct, java.nio.ByteBuffer value)Unsafe version ofid.
-
ndescription
public static void ndescription(long struct, java.nio.ByteBuffer value)Unsafe version ofdescription.
-
nfileExtension
public static void nfileExtension(long struct, java.nio.ByteBuffer value)Unsafe version offileExtension.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-