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.Layout
struct aiMemoryInfo { unsigned int
textures()
; 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 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 Deprecated Methods Modifier and Type Method Description int
animations()
Storage allocated for animation datastatic AIMemoryInfo
calloc()
Returns a newAIMemoryInfo
instance allocated withmemCalloc
.static AIMemoryInfo.Buffer
calloc(int capacity)
Returns a newAIMemoryInfo.Buffer
instance allocated withmemCalloc
.static AIMemoryInfo.Buffer
calloc(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
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMemoryInfo
callocStack()
Deprecated.static AIMemoryInfo.Buffer
callocStack(int capacity)
Deprecated.static AIMemoryInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIMemoryInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.int
cameras()
Storage allocated for camera datastatic 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()
Storage allocated for light datastatic AIMemoryInfo
malloc()
Returns a newAIMemoryInfo
instance allocated withmemAlloc
.static AIMemoryInfo.Buffer
malloc(int capacity)
Returns a newAIMemoryInfo.Buffer
instance allocated withmemAlloc
.static AIMemoryInfo.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfo.Buffer
instance allocated on the specifiedMemoryStack
.static AIMemoryInfo
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMemoryInfo
instance allocated on the specifiedMemoryStack
.static AIMemoryInfo
mallocStack()
Deprecated.static AIMemoryInfo.Buffer
mallocStack(int capacity)
Deprecated.static AIMemoryInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIMemoryInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.int
materials()
Storage allocated for material dataint
meshes()
Storage allocated for mesh datastatic 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()
Storage allocated for node datastatic int
ntextures(long struct)
Unsafe version oftextures()
.static int
ntotal(long struct)
Unsafe version oftotal()
.int
sizeof()
int
textures()
Storage allocated for texture dataint
total()
Total storage allocated for the full import.
-
-
-
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()
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 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
@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 newAIMemoryInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static AIMemoryInfo calloc(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
-
malloc
public static AIMemoryInfo.Buffer malloc(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
-
calloc
public static AIMemoryInfo.Buffer calloc(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()
.
-
-