Package org.lwjgl.assimp
Class AIAABB
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct aiAABB {
{@link AIVector3D struct aiVector3D} mMin;
{@link AIVector3D struct aiVector3D} mMax;
}
-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionAIAABB
(ByteBuffer container) Creates aAIAABB
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIAABB
calloc()
Returns a newAIAABB
instance allocated withmemCalloc
.static AIAABB.Buffer
calloc
(int capacity) Returns a newAIAABB.Buffer
instance allocated withmemCalloc
.static AIAABB.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newAIAABB.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIAABB
calloc
(MemoryStack stack) Returns a newAIAABB
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIAABB
Deprecated.static AIAABB.Buffer
callocStack
(int capacity) Deprecated.static AIAABB.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static AIAABB
callocStack
(MemoryStack stack) Deprecated.static AIAABB
create()
Returns a newAIAABB
instance allocated withBufferUtils
.static AIAABB.Buffer
create
(int capacity) Returns a newAIAABB.Buffer
instance allocated withBufferUtils
.static AIAABB
create
(long address) Returns a newAIAABB
instance for the specified memory address.static AIAABB.Buffer
create
(long address, int capacity) Create aAIAABB.Buffer
instance at the specified memory.static @Nullable AIAABB
createSafe
(long address) static @Nullable AIAABB.Buffer
createSafe
(long address, int capacity) static AIAABB
malloc()
Returns a newAIAABB
instance allocated withmemAlloc
.static AIAABB.Buffer
malloc
(int capacity) Returns a newAIAABB.Buffer
instance allocated withmemAlloc
.static AIAABB.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newAIAABB.Buffer
instance allocated on the specifiedMemoryStack
.static AIAABB
malloc
(MemoryStack stack) Returns a newAIAABB
instance allocated on the specifiedMemoryStack
.static AIAABB
Deprecated.static AIAABB.Buffer
mallocStack
(int capacity) Deprecated.static AIAABB.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static AIAABB
mallocStack
(MemoryStack stack) Deprecated.mMax()
mMax
(Consumer<AIVector3D> consumer) Passes themMax
field to the specifiedConsumer
.mMax
(AIVector3D value) Copies the specifiedAIVector3D
to themMax
field.mMin()
mMin
(Consumer<AIVector3D> consumer) Passes themMin
field to the specifiedConsumer
.mMin
(AIVector3D value) Copies the specifiedAIVector3D
to themMin
field.static AIVector3D
nmMax
(long struct) Unsafe version ofmMax()
.static void
nmMax
(long struct, AIVector3D value) Unsafe version ofmMax
.static AIVector3D
nmMin
(long struct) Unsafe version ofmMin()
.static void
nmMin
(long struct, AIVector3D value) Unsafe version ofmMin
.Copies the specified struct data to this struct.set
(AIVector3D mMin, AIVector3D mMax) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.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. -
MMIN
public static final int MMINThe struct member offsets. -
MMAX
public static final int MMAXThe struct member offsets.
-
-
Constructor Details
-
AIAABB
Creates aAIAABB
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)
. -
mMin
- Returns:
- a
AIVector3D
view of themMin
field.
-
mMax
- Returns:
- a
AIVector3D
view of themMax
field.
-
mMin
Copies the specifiedAIVector3D
to themMin
field. -
mMin
Passes themMin
field to the specifiedConsumer
. -
mMax
Copies the specifiedAIVector3D
to themMax
field. -
mMax
Passes themMax
field to the specifiedConsumer
. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newAIAABB
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newAIAABB
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newAIAABB
instance allocated withBufferUtils
. -
create
Returns a newAIAABB
instance for the specified memory address. -
createSafe
-
malloc
Returns a newAIAABB.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newAIAABB.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newAIAABB.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aAIAABB.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 newAIAABB
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newAIAABB
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newAIAABB.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newAIAABB.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nmMin
Unsafe version ofmMin()
. -
nmMax
Unsafe version ofmMax()
. -
nmMin
Unsafe version ofmMin
. -
nmMax
Unsafe version ofmMax
.
-