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.NativeResource
Stores 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 class
AIMemoryInfo.Buffer
An array ofAIMemoryInfo
structs.
-
Constructor Summary
Constructors Constructor Description AIMemoryInfo(java.nio.ByteBuffer container)
Creates aAIMemoryInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
animations()
Returns the value of theanimations
field.static AIMemoryInfo
calloc()
Returns a newAIMemoryInfo
instance allocated withmemCalloc
.static AIMemoryInfo.Buffer
calloc(int capacity)
Returns a newAIMemoryInfo.Buffer
instance allocated withmemCalloc
.static AIMemoryInfo
callocStack()
Returns a newAIMemoryInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AIMemoryInfo.Buffer
callocStack(int capacity)
Returns a newAIMemoryInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AIMemoryInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMemoryInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
cameras()
Returns the value of thecameras
field.static AIMemoryInfo
create()
Returns a newAIMemoryInfo
instance allocated withBufferUtils
.static AIMemoryInfo.Buffer
create(int capacity)
Returns a newAIMemoryInfo.Buffer
instance allocated withBufferUtils
.static AIMemoryInfo
create(long address)
Returns a newAIMemoryInfo
instance for the specified memory address.static AIMemoryInfo.Buffer
create(long address, int capacity)
Create aAIMemoryInfo.Buffer
instance at the specified memory.static AIMemoryInfo
createSafe(long address)
static AIMemoryInfo.Buffer
createSafe(long address, int capacity)
int
lights()
Returns the value of thelights
field.static AIMemoryInfo
malloc()
Returns a newAIMemoryInfo
instance allocated withmemAlloc
.static AIMemoryInfo.Buffer
malloc(int capacity)
Returns a newAIMemoryInfo.Buffer
instance allocated withmemAlloc
.static AIMemoryInfo
mallocStack()
Returns a newAIMemoryInfo
instance allocated on the thread-localMemoryStack
.static AIMemoryInfo.Buffer
mallocStack(int capacity)
Returns a newAIMemoryInfo.Buffer
instance allocated on the thread-localMemoryStack
.static AIMemoryInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfo.Buffer
instance allocated on the specifiedMemoryStack
.static AIMemoryInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfo
instance allocated on the specifiedMemoryStack
.int
materials()
Returns the value of thematerials
field.int
meshes()
Returns the value of themeshes
field.static int
nanimations(long struct)
Unsafe version ofanimations()
.static int
ncameras(long struct)
Unsafe version ofcameras()
.static int
nlights(long struct)
Unsafe version oflights()
.static int
nmaterials(long struct)
Unsafe version ofmaterials()
.static int
nmeshes(long struct)
Unsafe version ofmeshes()
.static int
nnodes(long struct)
Unsafe version ofnodes()
.int
nodes()
Returns the value of thenodes
field.static int
ntextures(long struct)
Unsafe version oftextures()
.static int
ntotal(long struct)
Unsafe version oftotal()
.int
sizeof()
int
textures()
Returns the value of thetextures
field.int
total()
Returns the value of thetotal
field.
-
-
-
Constructor Detail
-
AIMemoryInfo
public AIMemoryInfo(java.nio.ByteBuffer container)
Creates aAIMemoryInfo
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
textures
public int textures()
Returns the value of thetextures
field.
-
materials
public int materials()
Returns the value of thematerials
field.
-
meshes
public int meshes()
Returns the value of themeshes
field.
-
nodes
public int nodes()
Returns the value of thenodes
field.
-
animations
public int animations()
Returns the value of theanimations
field.
-
cameras
public int cameras()
Returns the value of thecameras
field.
-
lights
public int lights()
Returns the value of thelights
field.
-
total
public int total()
Returns the value of thetotal
field.
-
malloc
public static AIMemoryInfo malloc()
Returns a newAIMemoryInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static AIMemoryInfo calloc()
Returns a newAIMemoryInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static AIMemoryInfo create()
Returns a newAIMemoryInfo
instance allocated withBufferUtils
.
-
create
public static AIMemoryInfo create(long address)
Returns a newAIMemoryInfo
instance for the specified memory address.
-
createSafe
@Nullable public static AIMemoryInfo createSafe(long address)
-
malloc
public static AIMemoryInfo.Buffer malloc(int capacity)
Returns a newAIMemoryInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static AIMemoryInfo.Buffer calloc(int capacity)
Returns a newAIMemoryInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMemoryInfo.Buffer create(int capacity)
Returns a newAIMemoryInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMemoryInfo.Buffer create(long address, int capacity)
Create aAIMemoryInfo.Buffer
instance 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 newAIMemoryInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static AIMemoryInfo callocStack()
Returns a newAIMemoryInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static AIMemoryInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static AIMemoryInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfo
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static AIMemoryInfo.Buffer callocStack(int capacity)
Returns a newAIMemoryInfo.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
-