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.NativeResourceLayout
struct aiAABB {struct aiVector3DmMin;struct aiVector3DmMax; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAIAABB.BufferAn array ofAIAABBstructs.
-
Constructor Summary
Constructors Constructor Description AIAABB(java.nio.ByteBuffer container)Creates aAIAABBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AIAABBcalloc()Returns a newAIAABBinstance allocated withmemCalloc.static AIAABB.Buffercalloc(int capacity)Returns a newAIAABB.Bufferinstance allocated withmemCalloc.static AIAABBcallocStack()Returns a newAIAABBinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AIAABB.BuffercallocStack(int capacity)Returns a newAIAABB.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AIAABB.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIAABB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIAABBcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAIAABBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIAABBcreate()Returns a newAIAABBinstance allocated withBufferUtils.static AIAABB.Buffercreate(int capacity)Returns a newAIAABB.Bufferinstance allocated withBufferUtils.static AIAABBcreate(long address)Returns a newAIAABBinstance for the specified memory address.static AIAABB.Buffercreate(long address, int capacity)Create aAIAABB.Bufferinstance at the specified memory.static AIAABBcreateSafe(long address)static AIAABB.BuffercreateSafe(long address, int capacity)static AIAABBmalloc()Returns a newAIAABBinstance allocated withmemAlloc.static AIAABB.Buffermalloc(int capacity)Returns a newAIAABB.Bufferinstance allocated withmemAlloc.static AIAABBmallocStack()Returns a newAIAABBinstance allocated on the thread-localMemoryStack.static AIAABB.BuffermallocStack(int capacity)Returns a newAIAABB.Bufferinstance allocated on the thread-localMemoryStack.static AIAABB.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIAABB.Bufferinstance allocated on the specifiedMemoryStack.static AIAABBmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAIAABBinstance allocated on the specifiedMemoryStack.AIVector3DmMax()Returns aAIVector3Dview of themMaxfield.AIAABBmMax(java.util.function.Consumer<AIVector3D> consumer)Passes themMaxfield to the specifiedConsumer.AIAABBmMax(AIVector3D value)Copies the specifiedAIVector3Dto themMaxfield.AIVector3DmMin()Returns aAIVector3Dview of themMinfield.AIAABBmMin(java.util.function.Consumer<AIVector3D> consumer)Passes themMinfield to the specifiedConsumer.AIAABBmMin(AIVector3D value)Copies the specifiedAIVector3Dto themMinfield.static AIVector3DnmMax(long struct)Unsafe version ofmMax().static voidnmMax(long struct, AIVector3D value)Unsafe version ofmMax.static AIVector3DnmMin(long struct)Unsafe version ofmMin().static voidnmMin(long struct, AIVector3D value)Unsafe version ofmMin.AIAABBset(AIAABB src)Copies the specified struct data to this struct.AIAABBset(AIVector3D mMin, AIVector3D mMax)Initializes this struct with the specified values.intsizeof()
-
-
-
Constructor Detail
-
AIAABB
public AIAABB(java.nio.ByteBuffer container)
Creates aAIAABBinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
mMin
public AIVector3D mMin()
Returns aAIVector3Dview of themMinfield.
-
mMax
public AIVector3D mMax()
Returns aAIVector3Dview of themMaxfield.
-
mMin
public AIAABB mMin(AIVector3D value)
Copies the specifiedAIVector3Dto themMinfield.
-
mMin
public AIAABB mMin(java.util.function.Consumer<AIVector3D> consumer)
Passes themMinfield to the specifiedConsumer.
-
mMax
public AIAABB mMax(AIVector3D value)
Copies the specifiedAIVector3Dto themMaxfield.
-
mMax
public AIAABB mMax(java.util.function.Consumer<AIVector3D> consumer)
Passes themMaxfield 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 newAIAABBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static AIAABB calloc()
Returns a newAIAABBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static AIAABB create()
Returns a newAIAABBinstance allocated withBufferUtils.
-
create
public static AIAABB create(long address)
Returns a newAIAABBinstance for the specified memory address.
-
createSafe
@Nullable public static AIAABB createSafe(long address)
-
malloc
public static AIAABB.Buffer malloc(int capacity)
Returns a newAIAABB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static AIAABB.Buffer calloc(int capacity)
Returns a newAIAABB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static AIAABB.Buffer create(int capacity)
Returns a newAIAABB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static AIAABB.Buffer create(long address, int capacity)
Create aAIAABB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static AIAABB.Buffer createSafe(long address, int capacity)
-
mallocStack
public static AIAABB mallocStack()
Returns a newAIAABBinstance allocated on the thread-localMemoryStack.
-
callocStack
public static AIAABB callocStack()
Returns a newAIAABBinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static AIAABB mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIAABBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static AIAABB callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIAABBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static AIAABB.Buffer mallocStack(int capacity)
Returns a newAIAABB.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static AIAABB.Buffer callocStack(int capacity)
Returns a newAIAABB.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static AIAABB.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIAABB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static AIAABB.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIAABB.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-