public class AIAABB
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct aiAABB {
struct aiVector3D mMin;
struct aiVector3D mMax;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIAABB.Buffer
An array of
AIAABB structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MMAX
The struct member offsets.
|
static int |
MMIN
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AIAABB(java.nio.ByteBuffer container)
Creates a
AIAABB instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIAABB |
calloc()
Returns a new
AIAABB instance allocated with memCalloc. |
static AIAABB.Buffer |
calloc(int capacity)
Returns a new
AIAABB.Buffer instance allocated with memCalloc. |
static AIAABB |
callocStack()
Returns a new
AIAABB instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIAABB.Buffer |
callocStack(int capacity)
Returns a new
AIAABB.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIAABB.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIAABB.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIAABB |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIAABB instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIAABB |
create()
Returns a new
AIAABB instance allocated with BufferUtils. |
static AIAABB.Buffer |
create(int capacity)
Returns a new
AIAABB.Buffer instance allocated with BufferUtils. |
static AIAABB |
create(long address)
Returns a new
AIAABB instance for the specified memory address. |
static AIAABB.Buffer |
create(long address,
int capacity)
Create a
AIAABB.Buffer instance at the specified memory. |
static AIAABB |
createSafe(long address)
|
static AIAABB.Buffer |
createSafe(long address,
int capacity)
|
static AIAABB |
malloc()
Returns a new
AIAABB instance allocated with memAlloc. |
static AIAABB.Buffer |
malloc(int capacity)
Returns a new
AIAABB.Buffer instance allocated with memAlloc. |
static AIAABB |
mallocStack()
Returns a new
AIAABB instance allocated on the thread-local MemoryStack. |
static AIAABB.Buffer |
mallocStack(int capacity)
Returns a new
AIAABB.Buffer instance allocated on the thread-local MemoryStack. |
static AIAABB.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIAABB.Buffer instance allocated on the specified MemoryStack. |
static AIAABB |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIAABB instance allocated on the specified MemoryStack. |
AIVector3D |
mMax()
Returns a
AIVector3D view of the mMax field. |
AIAABB |
mMax(AIVector3D value)
Copies the specified
AIVector3D to the mMax field. |
AIAABB |
mMax(java.util.function.Consumer<AIVector3D> consumer)
Passes the
mMax field to the specified Consumer. |
AIVector3D |
mMin()
Returns a
AIVector3D view of the mMin field. |
AIAABB |
mMin(AIVector3D value)
Copies the specified
AIVector3D to the mMin field. |
AIAABB |
mMin(java.util.function.Consumer<AIVector3D> consumer)
Passes the
mMin field to the specified Consumer. |
static AIVector3D |
nmMax(long struct)
Unsafe version of
mMax(). |
static void |
nmMax(long struct,
AIVector3D value)
Unsafe version of
mMax. |
static AIVector3D |
nmMin(long struct)
Unsafe version of
mMin(). |
static void |
nmMin(long struct,
AIVector3D value)
Unsafe version of
mMin. |
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() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MMIN
public static final int MMAX
public AIAABB(java.nio.ByteBuffer container)
AIAABB 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 AIVector3D mMin()
AIVector3D view of the mMin field.public AIVector3D mMax()
AIVector3D view of the mMax field.public AIAABB mMin(AIVector3D value)
AIVector3D to the mMin field.public AIAABB mMin(java.util.function.Consumer<AIVector3D> consumer)
mMin field to the specified Consumer.public AIAABB mMax(AIVector3D value)
AIVector3D to the mMax field.public AIAABB mMax(java.util.function.Consumer<AIVector3D> consumer)
mMax field to the specified Consumer.public AIAABB set(AIVector3D mMin, AIVector3D mMax)
public AIAABB set(AIAABB src)
src - the source structpublic static AIAABB malloc()
AIAABB instance allocated with memAlloc. The instance must be explicitly freed.public static AIAABB calloc()
AIAABB instance allocated with memCalloc. The instance must be explicitly freed.public static AIAABB create()
AIAABB instance allocated with BufferUtils.public static AIAABB create(long address)
AIAABB instance for the specified memory address.@Nullable public static AIAABB createSafe(long address)
public static AIAABB.Buffer malloc(int capacity)
AIAABB.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIAABB.Buffer calloc(int capacity)
AIAABB.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIAABB.Buffer create(int capacity)
AIAABB.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIAABB.Buffer create(long address, int capacity)
AIAABB.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIAABB.Buffer createSafe(long address, int capacity)
public static AIAABB mallocStack()
AIAABB instance allocated on the thread-local MemoryStack.public static AIAABB callocStack()
AIAABB instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIAABB mallocStack(org.lwjgl.system.MemoryStack stack)
AIAABB instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIAABB callocStack(org.lwjgl.system.MemoryStack stack)
AIAABB instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIAABB.Buffer mallocStack(int capacity)
AIAABB.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIAABB.Buffer callocStack(int capacity)
AIAABB.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIAABB.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIAABB.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIAABB.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIAABB.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 AIVector3D nmMin(long struct)
mMin().public static AIVector3D nmMax(long struct)
mMax().public static void nmMin(long struct,
AIVector3D value)
mMin.public static void nmMax(long struct,
AIVector3D value)
mMax.Copyright LWJGL. All Rights Reserved. License terms.