Package org.lwjgl.vulkan
Class VkAabbPositionsKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkAabbPositionsKHR>
org.lwjgl.vulkan.VkAabbPositionsKHR
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkAabbPositionsNV
public class VkAabbPositionsKHR
extends org.lwjgl.system.Struct<VkAabbPositionsKHR>
implements org.lwjgl.system.NativeResource
Structure 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 {
float minX();
float minY();
float minZ();
float maxX();
float maxY();
float maxZ();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkAabbPositionsKHR(ByteBuffer container) Creates aVkAabbPositionsKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 @Nullable VkAabbPositionsKHRcreateSafe(long address) static @Nullable 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.maxX(float value) Sets the specified value to themaxX()field.floatmaxY()the y position of the other opposing corner of a bounding box.maxY(float value) Sets the specified value to themaxY()field.floatmaxZ()the z position of the other opposing corner of a bounding box.maxZ(float value) Sets the specified value to themaxZ()field.floatminX()the x position of one opposing corner of a bounding box.minX(float value) Sets the specified value to theminX()field.floatminY()the y position of one opposing corner of a bounding box.minY(float value) Sets the specified value to theminY()field.floatminZ()the z position of one opposing corner of a bounding box.minZ(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.set(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) Initializes this struct with the specified values.set(VkAabbPositionsKHR src) Copies the specified struct data to this struct.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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. -
MINX
public static final int MINXThe struct member offsets. -
MINY
public static final int MINYThe struct member offsets. -
MINZ
public static final int MINZThe struct member offsets. -
MAXX
public static final int MAXXThe struct member offsets. -
MAXY
public static final int MAXYThe struct member offsets. -
MAXZ
public static final int MAXZThe struct member offsets.
-
-
Constructor Details
-
VkAabbPositionsKHR
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkAabbPositionsKHR>
-
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
Sets the specified value to theminX()field. -
minY
Sets the specified value to theminY()field. -
minZ
Sets the specified value to theminZ()field. -
maxX
Sets the specified value to themaxX()field. -
maxY
Sets the specified value to themaxY()field. -
maxZ
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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkAabbPositionsKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkAabbPositionsKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkAabbPositionsKHRinstance allocated withBufferUtils. -
create
Returns a newVkAabbPositionsKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAabbPositionsKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkAabbPositionsKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkAabbPositionsKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkAabbPositionsKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkAabbPositionsKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkAabbPositionsKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkAabbPositionsKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkAabbPositionsKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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.
-