Package org.lwjgl.vulkan
Class VkAabbPositionsKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAabbPositionsKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkAabbPositionsNV
public class VkAabbPositionsKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying two opposing corners of an axis-aligned bounding box.Valid Usage
minXmust be less than or equal tomaxXminYmust be less than or equal tomaxYminZmust be less than or equal tomaxZ
Layout
struct VkAabbPositionsKHR { floatminX(); floatminY(); floatminZ(); floatmaxX(); floatmaxY(); floatmaxZ(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAabbPositionsKHR.BufferAn array ofVkAabbPositionsKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkAabbPositionsKHR(java.nio.ByteBuffer container)Creates aVkAabbPositionsKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkAabbPositionsKHRcalloc()Returns a newVkAabbPositionsKHRinstance allocated withmemCalloc.static VkAabbPositionsKHR.Buffercalloc(int capacity)Returns a newVkAabbPositionsKHR.Bufferinstance allocated withmemCalloc.static VkAabbPositionsKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAabbPositionsKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAabbPositionsKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAabbPositionsKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAabbPositionsKHRcreate()Returns a newVkAabbPositionsKHRinstance allocated withBufferUtils.static VkAabbPositionsKHR.Buffercreate(int capacity)Returns a newVkAabbPositionsKHR.Bufferinstance allocated withBufferUtils.static VkAabbPositionsKHRcreate(long address)Returns a newVkAabbPositionsKHRinstance for the specified memory address.static VkAabbPositionsKHR.Buffercreate(long address, int capacity)Create aVkAabbPositionsKHR.Bufferinstance at the specified memory.static VkAabbPositionsKHRcreateSafe(long address)static VkAabbPositionsKHR.BuffercreateSafe(long address, int capacity)static VkAabbPositionsKHRmalloc()Returns a newVkAabbPositionsKHRinstance allocated withmemAlloc.static VkAabbPositionsKHR.Buffermalloc(int capacity)Returns a newVkAabbPositionsKHR.Bufferinstance allocated withmemAlloc.static VkAabbPositionsKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAabbPositionsKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkAabbPositionsKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAabbPositionsKHRinstance allocated on the specifiedMemoryStack.floatmaxX()the x position of the other opposing corner of a bounding box.VkAabbPositionsKHRmaxX(float value)Sets the specified value to themaxX()field.floatmaxY()the y position of the other opposing corner of a bounding box.VkAabbPositionsKHRmaxY(float value)Sets the specified value to themaxY()field.floatmaxZ()the z position of the other opposing corner of a bounding box.VkAabbPositionsKHRmaxZ(float value)Sets the specified value to themaxZ()field.floatminX()the x position of one opposing corner of a bounding box.VkAabbPositionsKHRminX(float value)Sets the specified value to theminX()field.floatminY()the y position of one opposing corner of a bounding box.VkAabbPositionsKHRminY(float value)Sets the specified value to theminY()field.floatminZ()the z position of one opposing corner of a bounding box.VkAabbPositionsKHRminZ(float value)Sets the specified value to theminZ()field.static floatnmaxX(long struct)Unsafe version ofmaxX().static voidnmaxX(long struct, float value)Unsafe version ofmaxX.static floatnmaxY(long struct)Unsafe version ofmaxY().static voidnmaxY(long struct, float value)Unsafe version ofmaxY.static floatnmaxZ(long struct)Unsafe version ofmaxZ().static voidnmaxZ(long struct, float value)Unsafe version ofmaxZ.static floatnminX(long struct)Unsafe version ofminX().static voidnminX(long struct, float value)Unsafe version ofminX.static floatnminY(long struct)Unsafe version ofminY().static voidnminY(long struct, float value)Unsafe version ofminY.static floatnminZ(long struct)Unsafe version ofminZ().static voidnminZ(long struct, float value)Unsafe version ofminZ.VkAabbPositionsKHRset(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)Initializes this struct with the specified values.VkAabbPositionsKHRset(VkAabbPositionsKHR src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VkAabbPositionsKHR
public VkAabbPositionsKHR(java.nio.ByteBuffer container)
Creates aVkAabbPositionsKHRinstance 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
-
minX
public float minX()
the x position of one opposing corner of a bounding box.
-
minY
public float minY()
the y position of one opposing corner of a bounding box.
-
minZ
public float minZ()
the z position of one opposing corner of a bounding box.
-
maxX
public float maxX()
the x position of the other opposing corner of a bounding box.
-
maxY
public float maxY()
the y position of the other opposing corner of a bounding box.
-
maxZ
public float maxZ()
the z position of the other opposing corner of a bounding box.
-
minX
public VkAabbPositionsKHR minX(float value)
Sets the specified value to theminX()field.
-
minY
public VkAabbPositionsKHR minY(float value)
Sets the specified value to theminY()field.
-
minZ
public VkAabbPositionsKHR minZ(float value)
Sets the specified value to theminZ()field.
-
maxX
public VkAabbPositionsKHR maxX(float value)
Sets the specified value to themaxX()field.
-
maxY
public VkAabbPositionsKHR maxY(float value)
Sets the specified value to themaxY()field.
-
maxZ
public VkAabbPositionsKHR maxZ(float value)
Sets the specified value to themaxZ()field.
-
set
public VkAabbPositionsKHR set(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
Initializes this struct with the specified values.
-
set
public VkAabbPositionsKHR set(VkAabbPositionsKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAabbPositionsKHR malloc()
Returns a newVkAabbPositionsKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAabbPositionsKHR calloc()
Returns a newVkAabbPositionsKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAabbPositionsKHR create()
Returns a newVkAabbPositionsKHRinstance allocated withBufferUtils.
-
create
public static VkAabbPositionsKHR create(long address)
Returns a newVkAabbPositionsKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkAabbPositionsKHR createSafe(long address)
-
malloc
public static VkAabbPositionsKHR.Buffer malloc(int capacity)
Returns a newVkAabbPositionsKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAabbPositionsKHR.Buffer calloc(int capacity)
Returns a newVkAabbPositionsKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAabbPositionsKHR.Buffer create(int capacity)
Returns a newVkAabbPositionsKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAabbPositionsKHR.Buffer create(long address, int capacity)
Create aVkAabbPositionsKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAabbPositionsKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkAabbPositionsKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAabbPositionsKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAabbPositionsKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAabbPositionsKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAabbPositionsKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAabbPositionsKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkAabbPositionsKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAabbPositionsKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nminX
public static float nminX(long struct)
Unsafe version ofminX().
-
nminY
public static float nminY(long struct)
Unsafe version ofminY().
-
nminZ
public static float nminZ(long struct)
Unsafe version ofminZ().
-
nmaxX
public static float nmaxX(long struct)
Unsafe version ofmaxX().
-
nmaxY
public static float nmaxY(long struct)
Unsafe version ofmaxY().
-
nmaxZ
public static float nmaxZ(long struct)
Unsafe version ofmaxZ().
-
nminX
public static void nminX(long struct, float value)Unsafe version ofminX.
-
nminY
public static void nminY(long struct, float value)Unsafe version ofminY.
-
nminZ
public static void nminZ(long struct, float value)Unsafe version ofminZ.
-
nmaxX
public static void nmaxX(long struct, float value)Unsafe version ofmaxX.
-
nmaxY
public static void nmaxY(long struct, float value)Unsafe version ofmaxY.
-
nmaxZ
public static void nmaxZ(long struct, float value)Unsafe version ofmaxZ.
-
-