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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe 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 aAIMemoryInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintstatic AIMemoryInfocalloc()Returns a newAIMemoryInfoinstance allocated withmemCalloc.static AIMemoryInfo.Buffercalloc(int capacity) Returns a newAIMemoryInfo.Bufferinstance allocated withmemCalloc.static AIMemoryInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIMemoryInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMemoryInfocalloc(MemoryStack stack) Returns a newAIMemoryInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMemoryInfoDeprecated.static AIMemoryInfo.BuffercallocStack(int capacity) Deprecated.static AIMemoryInfo.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static AIMemoryInfocallocStack(MemoryStack stack) Deprecated.intcameras()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 @Nullable AIMemoryInfocreateSafe(long address) static @Nullable AIMemoryInfo.BuffercreateSafe(long address, int capacity) intlights()static AIMemoryInfomalloc()Returns a newAIMemoryInfoinstance allocated withmemAlloc.static AIMemoryInfo.Buffermalloc(int capacity) Returns a newAIMemoryInfo.Bufferinstance allocated withmemAlloc.static AIMemoryInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newAIMemoryInfo.Bufferinstance allocated on the specifiedMemoryStack.static AIMemoryInfomalloc(MemoryStack stack) Returns a newAIMemoryInfoinstance allocated on the specifiedMemoryStack.static AIMemoryInfoDeprecated.static AIMemoryInfo.BuffermallocStack(int capacity) Deprecated.static AIMemoryInfo.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static AIMemoryInfomallocStack(MemoryStack stack) Deprecated.intintmeshes()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()static intntextures(long struct) Unsafe version oftextures().static intntotal(long struct) Unsafe version oftotal().intsizeof()Returnssizeof(struct).inttextures()inttotal()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<AIMemoryInfo>
-
textures
public int textures()- Returns:
- the value of the
texturesfield.
-
materials
public int materials()- Returns:
- the value of the
materialsfield.
-
meshes
public int meshes()- Returns:
- the value of the
meshesfield.
-
nodes
public int nodes()- Returns:
- the value of the
nodesfield.
-
animations
public int animations()- Returns:
- the value of the
animationsfield.
-
cameras
public int cameras()- Returns:
- the value of the
camerasfield.
-
lights
public int lights()- Returns:
- the value of the
lightsfield.
-
total
public int total()- Returns:
- the value of the
totalfield.
-
malloc
Returns a newAIMemoryInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIMemoryInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIMemoryInfoinstance allocated withBufferUtils. -
create
Returns a newAIMemoryInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIMemoryInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIMemoryInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIMemoryInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIMemoryInfo.Bufferinstance 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 newAIMemoryInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIMemoryInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIMemoryInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIMemoryInfo.Bufferinstance allocated on the specifiedMemoryStackand 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().
-