Package org.lwjgl.assimp
Class AIAABB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIAABB
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class AIAABB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct aiAABB {
struct aiVector3D
mMin;struct aiVector3D
mMax; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AIAABB.Buffer
An array ofAIAABB
structs.
-
Constructor Summary
Constructors Constructor Description AIAABB(java.nio.ByteBuffer container)
Creates aAIAABB
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 static 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, org.lwjgl.system.MemoryStack stack)
Returns a newAIAABB.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIAABB
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIAABB
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIAABB
callocStack()
Deprecated.static AIAABB.Buffer
callocStack(int capacity)
Deprecated.static AIAABB.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIAABB
callocStack(org.lwjgl.system.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 AIAABB
createSafe(long address)
static 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, org.lwjgl.system.MemoryStack stack)
Returns a newAIAABB.Buffer
instance allocated on the specifiedMemoryStack
.static AIAABB
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIAABB
instance allocated on the specifiedMemoryStack
.static AIAABB
mallocStack()
Deprecated.static AIAABB.Buffer
mallocStack(int capacity)
Deprecated.static AIAABB.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIAABB
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.AIVector3D
mMax()
AIAABB
mMax(java.util.function.Consumer<AIVector3D> consumer)
Passes themMax
field to the specifiedConsumer
.AIAABB
mMax(AIVector3D value)
Copies the specifiedAIVector3D
to themMax
field.AIVector3D
mMin()
AIAABB
mMin(java.util.function.Consumer<AIVector3D> consumer)
Passes themMin
field to the specifiedConsumer
.AIAABB
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
.AIAABB
set(AIAABB src)
Copies the specified struct data to this struct.AIAABB
set(AIVector3D mMin, AIVector3D mMax)
Initializes this struct with the specified values.int
sizeof()
-
-
-
Constructor Detail
-
AIAABB
public AIAABB(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
mMin
public AIVector3D mMin()
- Returns:
- a
AIVector3D
view of themMin
field.
-
mMax
public AIVector3D mMax()
- Returns:
- a
AIVector3D
view of themMax
field.
-
mMin
public AIAABB mMin(AIVector3D value)
Copies the specifiedAIVector3D
to themMin
field.
-
mMin
public AIAABB mMin(java.util.function.Consumer<AIVector3D> consumer)
Passes themMin
field to the specifiedConsumer
.
-
mMax
public AIAABB mMax(AIVector3D value)
Copies the specifiedAIVector3D
to themMax
field.
-
mMax
public AIAABB mMax(java.util.function.Consumer<AIVector3D> consumer)
Passes themMax
field to the specifiedConsumer
.
-
set
public AIAABB set(AIVector3D mMin, AIVector3D mMax)
Initializes this struct with the specified values.
-
set
public AIAABB set(AIAABB src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static AIAABB malloc()
Returns a newAIAABB
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static AIAABB calloc()
Returns a newAIAABB
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static AIAABB create()
Returns a newAIAABB
instance allocated withBufferUtils
.
-
create
public static AIAABB create(long address)
Returns a newAIAABB
instance for the specified memory address.
-
createSafe
@Nullable public static AIAABB createSafe(long address)
-
malloc
public static AIAABB.Buffer malloc(int capacity)
Returns a newAIAABB.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static AIAABB.Buffer calloc(int capacity)
Returns a newAIAABB.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static AIAABB.Buffer create(int capacity)
Returns a newAIAABB.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static AIAABB.Buffer create(long address, int capacity)
Create aAIAABB.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static AIAABB.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static AIAABB mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static AIAABB callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static AIAABB mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static AIAABB callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static AIAABB.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static AIAABB.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
mallocStack
@Deprecated public static AIAABB.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 AIAABB.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
malloc
public static AIAABB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIAABB
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static AIAABB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIAABB
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static AIAABB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIAABB.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public static AIAABB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIAABB.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nmMin
public static AIVector3D nmMin(long struct)
Unsafe version ofmMin()
.
-
nmMax
public static AIVector3D nmMax(long struct)
Unsafe version ofmMax()
.
-
nmMin
public static void nmMin(long struct, AIVector3D value)
Unsafe version ofmMin
.
-
nmMax
public static void nmMax(long struct, AIVector3D value)
Unsafe version ofmMax
.
-
-