Package org.lwjgl.assimp
Class AIMemoryInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionAIMemoryInfo
(ByteBuffer container) Creates aAIMemoryInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
static 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, MemoryStack stack) Returns a newAIMemoryInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMemoryInfo
calloc
(MemoryStack stack) Returns a newAIMemoryInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMemoryInfo
Deprecated.static AIMemoryInfo.Buffer
callocStack
(int capacity) Deprecated.static AIMemoryInfo.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static AIMemoryInfo
callocStack
(MemoryStack stack) Deprecated.int
cameras()
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 @Nullable AIMemoryInfo
createSafe
(long address) static @Nullable AIMemoryInfo.Buffer
createSafe
(long address, int capacity) int
lights()
static 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, MemoryStack stack) Returns a newAIMemoryInfo.Buffer
instance allocated on the specifiedMemoryStack
.static AIMemoryInfo
malloc
(MemoryStack stack) Returns a newAIMemoryInfo
instance allocated on the specifiedMemoryStack
.static AIMemoryInfo
Deprecated.static AIMemoryInfo.Buffer
mallocStack
(int capacity) Deprecated.static AIMemoryInfo.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static AIMemoryInfo
mallocStack
(MemoryStack stack) Deprecated.int
int
meshes()
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()
static int
ntextures
(long struct) Unsafe version oftextures()
.static int
ntotal
(long struct) Unsafe version oftotal()
.int
sizeof()
Returnssizeof(struct)
.int
textures()
int
total()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TEXTURES
public static final int TEXTURESThe struct member offsets. -
MATERIALS
public static final int MATERIALSThe struct member offsets. -
MESHES
public static final int MESHESThe struct member offsets. -
NODES
public static final int NODESThe struct member offsets. -
ANIMATIONS
public static final int ANIMATIONSThe struct member offsets. -
CAMERAS
public static final int CAMERASThe struct member offsets. -
LIGHTS
public static final int LIGHTSThe struct member offsets. -
TOTAL
public static final int TOTALThe struct member offsets.
-
-
Constructor Details
-
AIMemoryInfo
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<AIMemoryInfo>
-
textures
public int textures()- Returns:
- the value of the
textures
field.
-
materials
public int materials()- Returns:
- the value of the
materials
field.
-
meshes
public int meshes()- Returns:
- the value of the
meshes
field.
-
nodes
public int nodes()- Returns:
- the value of the
nodes
field.
-
animations
public int animations()- Returns:
- the value of the
animations
field.
-
cameras
public int cameras()- Returns:
- the value of the
cameras
field.
-
lights
public int lights()- Returns:
- the value of the
lights
field.
-
total
public int total()- Returns:
- the value of the
total
field.
-
malloc
Returns a newAIMemoryInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newAIMemoryInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newAIMemoryInfo
instance allocated withBufferUtils
. -
create
Returns a newAIMemoryInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newAIMemoryInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newAIMemoryInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newAIMemoryInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aAIMemoryInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newAIMemoryInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newAIMemoryInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newAIMemoryInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newAIMemoryInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
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()
.
-