public class AIMemoryInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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.
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIMemoryInfo.Buffer
An array of
AIMemoryInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ANIMATIONS
The struct member offsets.
|
static int |
CAMERAS
The struct member offsets.
|
static int |
LIGHTS
The struct member offsets.
|
static int |
MATERIALS
The struct member offsets.
|
static int |
MESHES
The struct member offsets.
|
static int |
NODES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TEXTURES
The struct member offsets.
|
static int |
TOTAL
The struct member offsets.
|
| Constructor and Description |
|---|
AIMemoryInfo(java.nio.ByteBuffer container)
Creates a
AIMemoryInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
animations()
Returns the value of the
animations field. |
static AIMemoryInfo |
calloc()
Returns a new
AIMemoryInfo instance allocated with memCalloc. |
static AIMemoryInfo.Buffer |
calloc(int capacity)
Returns a new
AIMemoryInfo.Buffer instance allocated with memCalloc. |
static AIMemoryInfo |
callocStack()
Returns a new
AIMemoryInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMemoryInfo.Buffer |
callocStack(int capacity)
Returns a new
AIMemoryInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMemoryInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMemoryInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIMemoryInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMemoryInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
cameras()
Returns the value of the
cameras field. |
static AIMemoryInfo |
create()
Returns a new
AIMemoryInfo instance allocated with BufferUtils. |
static AIMemoryInfo.Buffer |
create(int capacity)
Returns a new
AIMemoryInfo.Buffer instance allocated with BufferUtils. |
static AIMemoryInfo |
create(long address)
Returns a new
AIMemoryInfo instance for the specified memory address. |
static AIMemoryInfo.Buffer |
create(long address,
int capacity)
Create a
AIMemoryInfo.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 the
lights field. |
static AIMemoryInfo |
malloc()
Returns a new
AIMemoryInfo instance allocated with memAlloc. |
static AIMemoryInfo.Buffer |
malloc(int capacity)
Returns a new
AIMemoryInfo.Buffer instance allocated with memAlloc. |
static AIMemoryInfo |
mallocStack()
Returns a new
AIMemoryInfo instance allocated on the thread-local MemoryStack. |
static AIMemoryInfo.Buffer |
mallocStack(int capacity)
Returns a new
AIMemoryInfo.Buffer instance allocated on the thread-local MemoryStack. |
static AIMemoryInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMemoryInfo.Buffer instance allocated on the specified MemoryStack. |
static AIMemoryInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMemoryInfo instance allocated on the specified MemoryStack. |
int |
materials()
Returns the value of the
materials field. |
int |
meshes()
Returns the value of the
meshes field. |
static int |
nanimations(long struct)
Unsafe version of
animations(). |
static int |
ncameras(long struct)
Unsafe version of
cameras(). |
static int |
nlights(long struct)
Unsafe version of
lights(). |
static int |
nmaterials(long struct)
Unsafe version of
materials(). |
static int |
nmeshes(long struct)
Unsafe version of
meshes(). |
static int |
nnodes(long struct)
Unsafe version of
nodes(). |
int |
nodes()
Returns the value of the
nodes field. |
static int |
ntextures(long struct)
Unsafe version of
textures(). |
static int |
ntotal(long struct)
Unsafe version of
total(). |
int |
sizeof() |
int |
textures()
Returns the value of the
textures field. |
int |
total()
Returns the value of the
total field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TEXTURES
public static final int MATERIALS
public static final int MESHES
public static final int NODES
public static final int ANIMATIONS
public static final int CAMERAS
public static final int LIGHTS
public static final int TOTAL
public AIMemoryInfo(java.nio.ByteBuffer container)
AIMemoryInfo instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int textures()
textures field.public int materials()
materials field.public int meshes()
meshes field.public int nodes()
nodes field.public int animations()
animations field.public int cameras()
cameras field.public int lights()
lights field.public int total()
total field.public static AIMemoryInfo malloc()
AIMemoryInfo instance allocated with memAlloc. The instance must be explicitly freed.public static AIMemoryInfo calloc()
AIMemoryInfo instance allocated with memCalloc. The instance must be explicitly freed.public static AIMemoryInfo create()
AIMemoryInfo instance allocated with BufferUtils.public static AIMemoryInfo create(long address)
AIMemoryInfo instance for the specified memory address.@Nullable public static AIMemoryInfo createSafe(long address)
public static AIMemoryInfo.Buffer malloc(int capacity)
AIMemoryInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMemoryInfo.Buffer calloc(int capacity)
AIMemoryInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMemoryInfo.Buffer create(int capacity)
AIMemoryInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIMemoryInfo.Buffer create(long address, int capacity)
AIMemoryInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIMemoryInfo.Buffer createSafe(long address, int capacity)
public static AIMemoryInfo mallocStack()
AIMemoryInfo instance allocated on the thread-local MemoryStack.public static AIMemoryInfo callocStack()
AIMemoryInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIMemoryInfo mallocStack(org.lwjgl.system.MemoryStack stack)
AIMemoryInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIMemoryInfo callocStack(org.lwjgl.system.MemoryStack stack)
AIMemoryInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIMemoryInfo.Buffer mallocStack(int capacity)
AIMemoryInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIMemoryInfo.Buffer callocStack(int capacity)
AIMemoryInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIMemoryInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMemoryInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIMemoryInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMemoryInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int ntextures(long struct)
textures().public static int nmaterials(long struct)
materials().public static int nmeshes(long struct)
meshes().public static int nnodes(long struct)
nodes().public static int nanimations(long struct)
animations().public static int ncameras(long struct)
cameras().public static int nlights(long struct)
lights().public static int ntotal(long struct)
total().Copyright LWJGL. All Rights Reserved. License terms.