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.Member documentation
textures– Storage allocated for texture datamaterials– Storage allocated for material datameshes– Storage allocated for mesh datanodes– Storage allocated for node dataanimations– Storage allocated for animation datacameras– Storage allocated for camera datalights– Storage allocated for light datatotal– Total storage allocated for the full import.
Layout
struct aiMemoryInfo { unsigned int textures; unsigned int materials; unsigned int meshes; unsigned int nodes; unsigned int animations; unsigned int cameras; unsigned int lights; unsigned int total; }
-
-
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 Modifier and Type Method Description intanimations()Returns the value of theanimationsfield.static AIMemoryInfocalloc()Returns a newAIMemoryInfoinstance allocated withmemCalloc.static AIMemoryInfo.Buffercalloc(int capacity)Returns a newAIMemoryInfo.Bufferinstance allocated withmemCalloc.static AIMemoryInfocallocStack()Returns a newAIMemoryInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AIMemoryInfo.BuffercallocStack(int capacity)Returns a newAIMemoryInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AIMemoryInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMemoryInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMemoryInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAIMemoryInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcameras()Returns the value of thecamerasfield.static 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()Returns the value of thelightsfield.static AIMemoryInfomalloc()Returns a newAIMemoryInfoinstance allocated withmemAlloc.static AIMemoryInfo.Buffermalloc(int capacity)Returns a newAIMemoryInfo.Bufferinstance allocated withmemAlloc.static AIMemoryInfomallocStack()Returns a newAIMemoryInfoinstance allocated on the thread-localMemoryStack.static AIMemoryInfo.BuffermallocStack(int capacity)Returns a newAIMemoryInfo.Bufferinstance allocated on the thread-localMemoryStack.static AIMemoryInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMemoryInfo.Bufferinstance allocated on the specifiedMemoryStack.static AIMemoryInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAIMemoryInfoinstance allocated on the specifiedMemoryStack.intmaterials()Returns the value of thematerialsfield.intmeshes()Returns the value of themeshesfield.static 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()Returns the value of thenodesfield.static intntextures(long struct)Unsafe version oftextures().static intntotal(long struct)Unsafe version oftotal().intsizeof()inttextures()Returns the value of thetexturesfield.inttotal()Returns the value of thetotalfield.
-
-
-
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()
Returns the value of thetexturesfield.
-
materials
public int materials()
Returns the value of thematerialsfield.
-
meshes
public int meshes()
Returns the value of themeshesfield.
-
nodes
public int nodes()
Returns the value of thenodesfield.
-
animations
public int animations()
Returns the value of theanimationsfield.
-
cameras
public int cameras()
Returns the value of thecamerasfield.
-
lights
public int lights()
Returns the value of thelightsfield.
-
total
public int total()
Returns the value of thetotalfield.
-
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
public static AIMemoryInfo mallocStack()
Returns a newAIMemoryInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static AIMemoryInfo callocStack()
Returns a newAIMemoryInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static AIMemoryInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static AIMemoryInfo callocStack(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
-
mallocStack
public static AIMemoryInfo.Buffer mallocStack(int capacity)
Returns a newAIMemoryInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static AIMemoryInfo.Buffer callocStack(int capacity)
Returns a newAIMemoryInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static AIMemoryInfo.Buffer mallocStack(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
-
callocStack
public static AIMemoryInfo.Buffer callocStack(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().
-
-