Package org.lwjgl.openxr
Class XrExternalCameraIntrinsicsOCULUS
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrExternalCameraIntrinsicsOCULUS>
org.lwjgl.openxr.XrExternalCameraIntrinsicsOCULUS
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class XrExternalCameraIntrinsicsOCULUS
extends Struct<XrExternalCameraIntrinsicsOCULUS>
implements NativeResource
struct XrExternalCameraIntrinsicsOCULUS {
XrTime lastChangeTime;
XrFovf fov;
float virtualNearPlaneDistance;
float virtualFarPlaneDistance;
XrExtent2Di imageSensorPixelResolution;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofXrExternalCameraIntrinsicsOCULUSstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrExternalCameraIntrinsicsOCULUS(ByteBuffer container) Creates aXrExternalCameraIntrinsicsOCULUSinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newXrExternalCameraIntrinsicsOCULUSinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrExternalCameraIntrinsicsOCULUS.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrExternalCameraIntrinsicsOCULUS.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newXrExternalCameraIntrinsicsOCULUSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newXrExternalCameraIntrinsicsOCULUSinstance allocated withBufferUtils.create(int capacity) Returns a newXrExternalCameraIntrinsicsOCULUS.Bufferinstance allocated withBufferUtils.create(long address) Returns a newXrExternalCameraIntrinsicsOCULUSinstance for the specified memory address.create(long address, int capacity) Create aXrExternalCameraIntrinsicsOCULUS.Bufferinstance at the specified memory.static @Nullable XrExternalCameraIntrinsicsOCULUScreateSafe(long address) static @Nullable XrExternalCameraIntrinsicsOCULUS.BuffercreateSafe(long address, int capacity) fov()Passes thefovfield to the specifiedConsumer.Copies the specifiedXrFovfto thefovfield.imageSensorPixelResolution(Consumer<XrExtent2Di> consumer) Passes theimageSensorPixelResolutionfield to the specifiedConsumer.Copies the specifiedXrExtent2Dito theimageSensorPixelResolutionfield.longlastChangeTime(long value) Sets the specified value to thelastChangeTimefield.malloc()Returns a newXrExternalCameraIntrinsicsOCULUSinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrExternalCameraIntrinsicsOCULUS.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrExternalCameraIntrinsicsOCULUS.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newXrExternalCameraIntrinsicsOCULUSinstance allocated on the specifiedMemoryStack.static XrFovfnfov(long struct) Unsafe version offov().static voidUnsafe version offov.static XrExtent2DinimageSensorPixelResolution(long struct) Unsafe version ofimageSensorPixelResolution().static voidnimageSensorPixelResolution(long struct, XrExtent2Di value) Unsafe version ofimageSensorPixelResolution.static longnlastChangeTime(long struct) Unsafe version oflastChangeTime().static voidnlastChangeTime(long struct, long value) Unsafe version oflastChangeTime.static floatnvirtualFarPlaneDistance(long struct) Unsafe version ofvirtualFarPlaneDistance().static voidnvirtualFarPlaneDistance(long struct, float value) Unsafe version ofvirtualFarPlaneDistance.static floatnvirtualNearPlaneDistance(long struct) Unsafe version ofvirtualNearPlaneDistance().static voidnvirtualNearPlaneDistance(long struct, float value) Unsafe version ofvirtualNearPlaneDistance.set(long lastChangeTime, XrFovf fov, float virtualNearPlaneDistance, float virtualFarPlaneDistance, XrExtent2Di imageSensorPixelResolution) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).floatvirtualFarPlaneDistance(float value) Sets the specified value to thevirtualFarPlaneDistancefield.floatvirtualNearPlaneDistance(float value) Sets the specified value to thevirtualNearPlaneDistancefield.Methods 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. -
LASTCHANGETIME
public static final int LASTCHANGETIMEThe struct member offsets. -
FOV
public static final int FOVThe struct member offsets. -
VIRTUALNEARPLANEDISTANCE
public static final int VIRTUALNEARPLANEDISTANCEThe struct member offsets. -
VIRTUALFARPLANEDISTANCE
public static final int VIRTUALFARPLANEDISTANCEThe struct member offsets. -
IMAGESENSORPIXELRESOLUTION
public static final int IMAGESENSORPIXELRESOLUTIONThe struct member offsets.
-
-
Constructor Details
-
XrExternalCameraIntrinsicsOCULUS
Creates aXrExternalCameraIntrinsicsOCULUSinstance 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<XrExternalCameraIntrinsicsOCULUS>
-
lastChangeTime
public long lastChangeTime()- Returns:
- the value of the
lastChangeTimefield.
-
fov
- Returns:
- a
XrFovfview of thefovfield.
-
virtualNearPlaneDistance
public float virtualNearPlaneDistance()- Returns:
- the value of the
virtualNearPlaneDistancefield.
-
virtualFarPlaneDistance
public float virtualFarPlaneDistance()- Returns:
- the value of the
virtualFarPlaneDistancefield.
-
imageSensorPixelResolution
- Returns:
- a
XrExtent2Diview of theimageSensorPixelResolutionfield.
-
lastChangeTime
Sets the specified value to thelastChangeTimefield. -
fov
Copies the specifiedXrFovfto thefovfield. -
fov
Passes thefovfield to the specifiedConsumer. -
virtualNearPlaneDistance
Sets the specified value to thevirtualNearPlaneDistancefield. -
virtualFarPlaneDistance
Sets the specified value to thevirtualFarPlaneDistancefield. -
imageSensorPixelResolution
Copies the specifiedXrExtent2Dito theimageSensorPixelResolutionfield. -
imageSensorPixelResolution
Passes theimageSensorPixelResolutionfield to the specifiedConsumer. -
set
public XrExternalCameraIntrinsicsOCULUS set(long lastChangeTime, XrFovf fov, float virtualNearPlaneDistance, float virtualFarPlaneDistance, XrExtent2Di imageSensorPixelResolution) 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 newXrExternalCameraIntrinsicsOCULUSinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrExternalCameraIntrinsicsOCULUSinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrExternalCameraIntrinsicsOCULUSinstance allocated withBufferUtils. -
create
Returns a newXrExternalCameraIntrinsicsOCULUSinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrExternalCameraIntrinsicsOCULUS.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrExternalCameraIntrinsicsOCULUS.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrExternalCameraIntrinsicsOCULUS.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrExternalCameraIntrinsicsOCULUS.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable XrExternalCameraIntrinsicsOCULUS.Buffer createSafe(long address, int capacity) -
malloc
Returns a newXrExternalCameraIntrinsicsOCULUSinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrExternalCameraIntrinsicsOCULUSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrExternalCameraIntrinsicsOCULUS.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrExternalCameraIntrinsicsOCULUS.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nlastChangeTime
public static long nlastChangeTime(long struct) Unsafe version oflastChangeTime(). -
nfov
Unsafe version offov(). -
nvirtualNearPlaneDistance
public static float nvirtualNearPlaneDistance(long struct) Unsafe version ofvirtualNearPlaneDistance(). -
nvirtualFarPlaneDistance
public static float nvirtualFarPlaneDistance(long struct) Unsafe version ofvirtualFarPlaneDistance(). -
nimageSensorPixelResolution
Unsafe version ofimageSensorPixelResolution(). -
nlastChangeTime
public static void nlastChangeTime(long struct, long value) Unsafe version oflastChangeTime. -
nfov
Unsafe version offov. -
nvirtualNearPlaneDistance
public static void nvirtualNearPlaneDistance(long struct, float value) Unsafe version ofvirtualNearPlaneDistance. -
nvirtualFarPlaneDistance
public static void nvirtualFarPlaneDistance(long struct, float value) Unsafe version ofvirtualFarPlaneDistance. -
nimageSensorPixelResolution
Unsafe version ofimageSensorPixelResolution.
-