Package org.lwjgl.assimp
Class AIMemoryInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIMemoryInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class AIMemoryInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStores the memory requirements for different components (e.g. meshes, materials, animations) of an import. All sizes are in bytes.Layout
struct aiMemoryInfo { unsigned inttextures(); unsigned intmaterials(); unsigned intmeshes(); unsigned intnodes(); unsigned intanimations(); unsigned intcameras(); unsigned intlights(); unsigned inttotal(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAIMemoryInfo.BufferAn array ofAIMemoryInfostructs.
-
Constructor Summary
Constructors Constructor Description AIMemoryInfo(java.nio.ByteBuffer container)Creates aAIMemoryInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intanimations()Storage allocated for animation datastatic AIMemoryInfocalloc()Returns a newAIMemoryInfoinstance allocated withmemCalloc.static AIMemoryInfo.Buffercalloc(int capacity)Returns a newAIMemoryInfo.Bufferinstance allocated withmemCalloc.static AIMemoryInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMemoryInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMemoryInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMemoryInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMemoryInfocallocStack()Deprecated.static AIMemoryInfo.BuffercallocStack(int capacity)Deprecated.static AIMemoryInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMemoryInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intcameras()Storage allocated for camera datastatic AIMemoryInfocreate()Returns a newAIMemoryInfoinstance allocated withBufferUtils.static AIMemoryInfo.Buffercreate(int capacity)Returns a newAIMemoryInfo.Bufferinstance allocated withBufferUtils.static AIMemoryInfocreate(long address)Returns a newAIMemoryInfoinstance for the specified memory address.static AIMemoryInfo.Buffercreate(long address, int capacity)Create aAIMemoryInfo.Bufferinstance at the specified memory.static AIMemoryInfocreateSafe(long address)static AIMemoryInfo.BuffercreateSafe(long address, int capacity)intlights()Storage allocated for light datastatic AIMemoryInfomalloc()Returns a newAIMemoryInfoinstance allocated withmemAlloc.static AIMemoryInfo.Buffermalloc(int capacity)Returns a newAIMemoryInfo.Bufferinstance allocated withmemAlloc.static AIMemoryInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMemoryInfo.Bufferinstance allocated on the specifiedMemoryStack.static AIMemoryInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMemoryInfoinstance allocated on the specifiedMemoryStack.static AIMemoryInfomallocStack()Deprecated.static AIMemoryInfo.BuffermallocStack(int capacity)Deprecated.static AIMemoryInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMemoryInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intmaterials()Storage allocated for material dataintmeshes()Storage allocated for mesh datastatic intnanimations(long struct)Unsafe version ofanimations().static intncameras(long struct)Unsafe version ofcameras().static intnlights(long struct)Unsafe version oflights().static intnmaterials(long struct)Unsafe version ofmaterials().static intnmeshes(long struct)Unsafe version ofmeshes().static intnnodes(long struct)Unsafe version ofnodes().intnodes()Storage allocated for node datastatic intntextures(long struct)Unsafe version oftextures().static intntotal(long struct)Unsafe version oftotal().intsizeof()inttextures()Storage allocated for texture datainttotal()Total storage allocated for the full import.
-
-
-
Constructor Detail
-
AIMemoryInfo
public AIMemoryInfo(java.nio.ByteBuffer container)
Creates aAIMemoryInfoinstance 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
-
textures
public int textures()
Storage allocated for texture data
-
materials
public int materials()
Storage allocated for material data
-
meshes
public int meshes()
Storage allocated for mesh data
-
nodes
public int nodes()
Storage allocated for node data
-
animations
public int animations()
Storage allocated for animation data
-
cameras
public int cameras()
Storage allocated for camera data
-
lights
public int lights()
Storage allocated for light data
-
total
public int total()
Total storage allocated for the full import.
-
malloc
public static AIMemoryInfo malloc()
Returns a newAIMemoryInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static AIMemoryInfo calloc()
Returns a newAIMemoryInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static AIMemoryInfo create()
Returns a newAIMemoryInfoinstance allocated withBufferUtils.
-
create
public static AIMemoryInfo create(long address)
Returns a newAIMemoryInfoinstance for the specified memory address.
-
createSafe
@Nullable public static AIMemoryInfo createSafe(long address)
-
malloc
public static AIMemoryInfo.Buffer malloc(int capacity)
Returns a newAIMemoryInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static AIMemoryInfo.Buffer calloc(int capacity)
Returns a newAIMemoryInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static AIMemoryInfo.Buffer create(int capacity)
Returns a newAIMemoryInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static AIMemoryInfo.Buffer create(long address, int capacity)
Create aAIMemoryInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static AIMemoryInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static AIMemoryInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMemoryInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMemoryInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMemoryInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMemoryInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AIMemoryInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMemoryInfo.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 AIMemoryInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static AIMemoryInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static AIMemoryInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static AIMemoryInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static AIMemoryInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntextures
public static int ntextures(long struct)
Unsafe version oftextures().
-
nmaterials
public static int nmaterials(long struct)
Unsafe version ofmaterials().
-
nmeshes
public static int nmeshes(long struct)
Unsafe version ofmeshes().
-
nnodes
public static int nnodes(long struct)
Unsafe version ofnodes().
-
nanimations
public static int nanimations(long struct)
Unsafe version ofanimations().
-
ncameras
public static int ncameras(long struct)
Unsafe version ofcameras().
-
nlights
public static int nlights(long struct)
Unsafe version oflights().
-
ntotal
public static int ntotal(long struct)
Unsafe version oftotal().
-
-