Class XrSoundObjectDistanceAttenuationBD
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSoundObjectDistanceAttenuationBD>
org.lwjgl.openxr.XrSoundObjectDistanceAttenuationBD
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class XrSoundObjectDistanceAttenuationBD
extends Struct<XrSoundObjectDistanceAttenuationBD>
implements NativeResource
struct XrSoundObjectDistanceAttenuationBD {
XrStructureType type;
void const * next;
XrSoundObjectDistanceAttenuationTypeBD distanceAttenuationType;
float minAttenuationRange;
float maxAttenuationRange;
float referenceDistance;
float rolloffFactor;
XrSoundObjectDistanceAttenuationCurveBD * customDistanceAttenuationCurve;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofXrSoundObjectDistanceAttenuationBDstructs.Nested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
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 member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSoundObjectDistanceAttenuationBD(ByteBuffer container) Creates aXrSoundObjectDistanceAttenuationBDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newXrSoundObjectDistanceAttenuationBDinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrSoundObjectDistanceAttenuationBD.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrSoundObjectDistanceAttenuationBD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newXrSoundObjectDistanceAttenuationBDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newXrSoundObjectDistanceAttenuationBDinstance allocated withBufferUtils.create(int capacity) Returns a newXrSoundObjectDistanceAttenuationBD.Bufferinstance allocated withBufferUtils.create(long address) Returns a newXrSoundObjectDistanceAttenuationBDinstance for the specified memory address.create(long address, int capacity) Create aXrSoundObjectDistanceAttenuationBD.Bufferinstance at the specified memory.static @Nullable XrSoundObjectDistanceAttenuationBDcreateSafe(long address) static @Nullable XrSoundObjectDistanceAttenuationBD.BuffercreateSafe(long address, int capacity) @Nullable XrSoundObjectDistanceAttenuationCurveBDcustomDistanceAttenuationCurve(@Nullable XrSoundObjectDistanceAttenuationCurveBD value) Sets the address of the specifiedXrSoundObjectDistanceAttenuationCurveBDto thecustomDistanceAttenuationCurvefield.intdistanceAttenuationType(int value) Sets the specified value to thedistanceAttenuationTypefield.malloc()Returns a newXrSoundObjectDistanceAttenuationBDinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrSoundObjectDistanceAttenuationBD.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrSoundObjectDistanceAttenuationBD.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newXrSoundObjectDistanceAttenuationBDinstance allocated on the specifiedMemoryStack.floatmaxAttenuationRange(float value) Sets the specified value to themaxAttenuationRangefield.floatminAttenuationRange(float value) Sets the specified value to theminAttenuationRangefield.static @Nullable XrSoundObjectDistanceAttenuationCurveBDncustomDistanceAttenuationCurve(long struct) Unsafe version ofcustomDistanceAttenuationCurve().static voidncustomDistanceAttenuationCurve(long struct, @Nullable XrSoundObjectDistanceAttenuationCurveBD value) Unsafe version ofcustomDistanceAttenuationCurve.static intndistanceAttenuationType(long struct) Unsafe version ofdistanceAttenuationType().static voidndistanceAttenuationType(long struct, int value) Unsafe version ofdistanceAttenuationType.longnext()next(long value) Sets the specified value to thenextfield.static floatnmaxAttenuationRange(long struct) Unsafe version ofmaxAttenuationRange().static voidnmaxAttenuationRange(long struct, float value) Unsafe version ofmaxAttenuationRange.static floatnminAttenuationRange(long struct) Unsafe version ofminAttenuationRange().static voidnminAttenuationRange(long struct, float value) Unsafe version ofminAttenuationRange.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static floatnreferenceDistance(long struct) Unsafe version ofreferenceDistance().static voidnreferenceDistance(long struct, float value) Unsafe version ofreferenceDistance.static floatnrolloffFactor(long struct) Unsafe version ofrolloffFactor().static voidnrolloffFactor(long struct, float value) Unsafe version ofrolloffFactor.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.floatreferenceDistance(float value) Sets the specified value to thereferenceDistancefield.floatrolloffFactor(float value) Sets the specified value to therolloffFactorfield.set(int type, long next, int distanceAttenuationType, float minAttenuationRange, float maxAttenuationRange, float referenceDistance, float rolloffFactor, @Nullable XrSoundObjectDistanceAttenuationCurveBD customDistanceAttenuationCurve) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_SOUND_OBJECT_DISTANCE_ATTENUATION_BDvalue to thetypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
DISTANCEATTENUATIONTYPE
public static final int DISTANCEATTENUATIONTYPEThe struct member offsets. -
MINATTENUATIONRANGE
public static final int MINATTENUATIONRANGEThe struct member offsets. -
MAXATTENUATIONRANGE
public static final int MAXATTENUATIONRANGEThe struct member offsets. -
REFERENCEDISTANCE
public static final int REFERENCEDISTANCEThe struct member offsets. -
ROLLOFFFACTOR
public static final int ROLLOFFFACTORThe struct member offsets. -
CUSTOMDISTANCEATTENUATIONCURVE
public static final int CUSTOMDISTANCEATTENUATIONCURVEThe struct member offsets.
-
-
Constructor Details
-
XrSoundObjectDistanceAttenuationBD
Creates aXrSoundObjectDistanceAttenuationBDinstance 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrSoundObjectDistanceAttenuationBD>
-
type
- Returns:
- the value of the
typefield.
-
next
- Returns:
- the value of the
nextfield.
-
distanceAttenuationType
- Returns:
- the value of the
distanceAttenuationTypefield.
-
minAttenuationRange
public float minAttenuationRange()- Returns:
- the value of the
minAttenuationRangefield.
-
maxAttenuationRange
public float maxAttenuationRange()- Returns:
- the value of the
maxAttenuationRangefield.
-
referenceDistance
public float referenceDistance()- Returns:
- the value of the
referenceDistancefield.
-
rolloffFactor
public float rolloffFactor()- Returns:
- the value of the
rolloffFactorfield.
-
customDistanceAttenuationCurve
@NativeType("XrSoundObjectDistanceAttenuationCurveBD *") public @Nullable XrSoundObjectDistanceAttenuationCurveBD customDistanceAttenuationCurve()- Returns:
- a
XrSoundObjectDistanceAttenuationCurveBDview of the struct pointed to by thecustomDistanceAttenuationCurvefield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_SOUND_OBJECT_DISTANCE_ATTENUATION_BDvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
distanceAttenuationType
public XrSoundObjectDistanceAttenuationBD distanceAttenuationType(@NativeType("XrSoundObjectDistanceAttenuationTypeBD") int value) Sets the specified value to thedistanceAttenuationTypefield. -
minAttenuationRange
Sets the specified value to theminAttenuationRangefield. -
maxAttenuationRange
Sets the specified value to themaxAttenuationRangefield. -
referenceDistance
Sets the specified value to thereferenceDistancefield. -
rolloffFactor
Sets the specified value to therolloffFactorfield. -
customDistanceAttenuationCurve
public XrSoundObjectDistanceAttenuationBD customDistanceAttenuationCurve(@NativeType("XrSoundObjectDistanceAttenuationCurveBD *") @Nullable XrSoundObjectDistanceAttenuationCurveBD value) Sets the address of the specifiedXrSoundObjectDistanceAttenuationCurveBDto thecustomDistanceAttenuationCurvefield. -
set
public XrSoundObjectDistanceAttenuationBD set(int type, long next, int distanceAttenuationType, float minAttenuationRange, float maxAttenuationRange, float referenceDistance, float rolloffFactor, @Nullable XrSoundObjectDistanceAttenuationCurveBD customDistanceAttenuationCurve) 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 newXrSoundObjectDistanceAttenuationBDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSoundObjectDistanceAttenuationBDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSoundObjectDistanceAttenuationBDinstance allocated withBufferUtils. -
create
Returns a newXrSoundObjectDistanceAttenuationBDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSoundObjectDistanceAttenuationBD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSoundObjectDistanceAttenuationBD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSoundObjectDistanceAttenuationBD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSoundObjectDistanceAttenuationBD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable XrSoundObjectDistanceAttenuationBD.Buffer createSafe(long address, int capacity) -
malloc
Returns a newXrSoundObjectDistanceAttenuationBDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSoundObjectDistanceAttenuationBDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSoundObjectDistanceAttenuationBD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSoundObjectDistanceAttenuationBD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
ndistanceAttenuationType
public static int ndistanceAttenuationType(long struct) Unsafe version ofdistanceAttenuationType(). -
nminAttenuationRange
public static float nminAttenuationRange(long struct) Unsafe version ofminAttenuationRange(). -
nmaxAttenuationRange
public static float nmaxAttenuationRange(long struct) Unsafe version ofmaxAttenuationRange(). -
nreferenceDistance
public static float nreferenceDistance(long struct) Unsafe version ofreferenceDistance(). -
nrolloffFactor
public static float nrolloffFactor(long struct) Unsafe version ofrolloffFactor(). -
ncustomDistanceAttenuationCurve
public static @Nullable XrSoundObjectDistanceAttenuationCurveBD ncustomDistanceAttenuationCurve(long struct) Unsafe version ofcustomDistanceAttenuationCurve(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
ndistanceAttenuationType
public static void ndistanceAttenuationType(long struct, int value) Unsafe version ofdistanceAttenuationType. -
nminAttenuationRange
public static void nminAttenuationRange(long struct, float value) Unsafe version ofminAttenuationRange. -
nmaxAttenuationRange
public static void nmaxAttenuationRange(long struct, float value) Unsafe version ofmaxAttenuationRange. -
nreferenceDistance
public static void nreferenceDistance(long struct, float value) Unsafe version ofreferenceDistance. -
nrolloffFactor
public static void nrolloffFactor(long struct, float value) Unsafe version ofrolloffFactor. -
ncustomDistanceAttenuationCurve
public static void ncustomDistanceAttenuationCurve(long struct, @Nullable XrSoundObjectDistanceAttenuationCurveBD value) Unsafe version ofcustomDistanceAttenuationCurve. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-