Package com.raylib.jextract
Class VrDeviceInfo
java.lang.Object
com.raylib.jextract.VrDeviceInfo
struct VrDeviceInfo {
int hResolution;
int vResolution;
float hScreenSize;
float vScreenSize;
float vScreenCenter;
float eyeToScreenDistance;
float lensSeparationDistance;
float interpupillaryDistance;
float lensDistortionValues[4];
float chromaAbCorrection[4];
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentchromaAbCorrection(MemorySegment struct) Getter for field:float chromaAbCorrection[4]static floatchromaAbCorrection(MemorySegment struct, long index0) Indexed getter for field:float chromaAbCorrection[4]static voidchromaAbCorrection(MemorySegment struct, long index0, float fieldValue) Indexed setter for field:float chromaAbCorrection[4]static voidchromaAbCorrection(MemorySegment struct, MemorySegment fieldValue) Setter for field:float chromaAbCorrection[4]static long[]Dimensions for array field:float chromaAbCorrection[4]static final SequenceLayoutLayout for field:float chromaAbCorrection[4]static final longOffset for field:float chromaAbCorrection[4]static floateyeToScreenDistance(MemorySegment struct) Getter for field:float eyeToScreenDistancestatic voideyeToScreenDistance(MemorySegment struct, float fieldValue) Setter for field:float eyeToScreenDistancestatic final ValueLayout.OfFloatLayout for field:float eyeToScreenDistancestatic final longOffset for field:float eyeToScreenDistancestatic inthResolution(MemorySegment struct) Getter for field:int hResolutionstatic voidhResolution(MemorySegment struct, int fieldValue) Setter for field:int hResolutionstatic final ValueLayout.OfIntLayout for field:int hResolutionstatic final longOffset for field:int hResolutionstatic floathScreenSize(MemorySegment struct) Getter for field:float hScreenSizestatic voidhScreenSize(MemorySegment struct, float fieldValue) Setter for field:float hScreenSizestatic final ValueLayout.OfFloatLayout for field:float hScreenSizestatic final longOffset for field:float hScreenSizestatic floatinterpupillaryDistance(MemorySegment struct) Getter for field:float interpupillaryDistancestatic voidinterpupillaryDistance(MemorySegment struct, float fieldValue) Setter for field:float interpupillaryDistancestatic final ValueLayout.OfFloatLayout for field:float interpupillaryDistancestatic final longOffset for field:float interpupillaryDistancestatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentlensDistortionValues(MemorySegment struct) Getter for field:float lensDistortionValues[4]static floatlensDistortionValues(MemorySegment struct, long index0) Indexed getter for field:float lensDistortionValues[4]static voidlensDistortionValues(MemorySegment struct, long index0, float fieldValue) Indexed setter for field:float lensDistortionValues[4]static voidlensDistortionValues(MemorySegment struct, MemorySegment fieldValue) Setter for field:float lensDistortionValues[4]static long[]Dimensions for array field:float lensDistortionValues[4]static final SequenceLayoutLayout for field:float lensDistortionValues[4]static final longOffset for field:float lensDistortionValues[4]static floatlensSeparationDistance(MemorySegment struct) Getter for field:float lensSeparationDistancestatic voidlensSeparationDistance(MemorySegment struct, float fieldValue) Setter for field:float lensSeparationDistancestatic final ValueLayout.OfFloatLayout for field:float lensSeparationDistancestatic final longOffset for field:float lensSeparationDistancestatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static longsizeof()The size (in bytes) of this structstatic intvResolution(MemorySegment struct) Getter for field:int vResolutionstatic voidvResolution(MemorySegment struct, int fieldValue) Setter for field:int vResolutionstatic final ValueLayout.OfIntLayout for field:int vResolutionstatic final longOffset for field:int vResolutionstatic floatvScreenCenter(MemorySegment struct) Getter for field:float vScreenCenterstatic voidvScreenCenter(MemorySegment struct, float fieldValue) Setter for field:float vScreenCenterstatic final ValueLayout.OfFloatLayout for field:float vScreenCenterstatic final longOffset for field:float vScreenCenterstatic floatvScreenSize(MemorySegment struct) Getter for field:float vScreenSizestatic voidvScreenSize(MemorySegment struct, float fieldValue) Setter for field:float vScreenSizestatic final ValueLayout.OfFloatLayout for field:float vScreenSizestatic final longOffset for field:float vScreenSize
-
Method Details
-
layout
The layout of this struct -
hResolution$layout
Layout for field:int hResolution -
hResolution$offset
public static final long hResolution$offset()Offset for field:int hResolution -
hResolution
Getter for field:int hResolution -
hResolution
Setter for field:int hResolution -
vResolution$layout
Layout for field:int vResolution -
vResolution$offset
public static final long vResolution$offset()Offset for field:int vResolution -
vResolution
Getter for field:int vResolution -
vResolution
Setter for field:int vResolution -
hScreenSize$layout
Layout for field:float hScreenSize -
hScreenSize$offset
public static final long hScreenSize$offset()Offset for field:float hScreenSize -
hScreenSize
Getter for field:float hScreenSize -
hScreenSize
Setter for field:float hScreenSize -
vScreenSize$layout
Layout for field:float vScreenSize -
vScreenSize$offset
public static final long vScreenSize$offset()Offset for field:float vScreenSize -
vScreenSize
Getter for field:float vScreenSize -
vScreenSize
Setter for field:float vScreenSize -
vScreenCenter$layout
Layout for field:float vScreenCenter -
vScreenCenter$offset
public static final long vScreenCenter$offset()Offset for field:float vScreenCenter -
vScreenCenter
Getter for field:float vScreenCenter -
vScreenCenter
Setter for field:float vScreenCenter -
eyeToScreenDistance$layout
Layout for field:float eyeToScreenDistance -
eyeToScreenDistance$offset
public static final long eyeToScreenDistance$offset()Offset for field:float eyeToScreenDistance -
eyeToScreenDistance
Getter for field:float eyeToScreenDistance -
eyeToScreenDistance
Setter for field:float eyeToScreenDistance -
lensSeparationDistance$layout
Layout for field:float lensSeparationDistance -
lensSeparationDistance$offset
public static final long lensSeparationDistance$offset()Offset for field:float lensSeparationDistance -
lensSeparationDistance
Getter for field:float lensSeparationDistance -
lensSeparationDistance
Setter for field:float lensSeparationDistance -
interpupillaryDistance$layout
Layout for field:float interpupillaryDistance -
interpupillaryDistance$offset
public static final long interpupillaryDistance$offset()Offset for field:float interpupillaryDistance -
interpupillaryDistance
Getter for field:float interpupillaryDistance -
interpupillaryDistance
Setter for field:float interpupillaryDistance -
lensDistortionValues$layout
Layout for field:float lensDistortionValues[4] -
lensDistortionValues$offset
public static final long lensDistortionValues$offset()Offset for field:float lensDistortionValues[4] -
lensDistortionValues
Getter for field:float lensDistortionValues[4] -
lensDistortionValues
Setter for field:float lensDistortionValues[4] -
lensDistortionValues$dimensions
public static long[] lensDistortionValues$dimensions()Dimensions for array field:float lensDistortionValues[4] -
lensDistortionValues
Indexed getter for field:float lensDistortionValues[4] -
lensDistortionValues
Indexed setter for field:float lensDistortionValues[4] -
chromaAbCorrection$layout
Layout for field:float chromaAbCorrection[4] -
chromaAbCorrection$offset
public static final long chromaAbCorrection$offset()Offset for field:float chromaAbCorrection[4] -
chromaAbCorrection
Getter for field:float chromaAbCorrection[4] -
chromaAbCorrection
Setter for field:float chromaAbCorrection[4] -
chromaAbCorrection$dimensions
public static long[] chromaAbCorrection$dimensions()Dimensions for array field:float chromaAbCorrection[4] -
chromaAbCorrection
Indexed getter for field:float chromaAbCorrection[4] -
chromaAbCorrection
Indexed setter for field:float chromaAbCorrection[4] -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}' -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-