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;
{@link XrFovf XrFovf} fov;
float virtualNearPlaneDistance;
float virtualFarPlaneDistance;
{@link XrExtent2Di XrExtent2Di} imageSensorPixelResolution;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofXrExternalCameraIntrinsicsOCULUS
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The 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 aXrExternalCameraIntrinsicsOCULUS
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newXrExternalCameraIntrinsicsOCULUS
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newXrExternalCameraIntrinsicsOCULUS.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newXrExternalCameraIntrinsicsOCULUS.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newXrExternalCameraIntrinsicsOCULUS
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newXrExternalCameraIntrinsicsOCULUS
instance allocated withBufferUtils
.create
(int capacity) Returns a newXrExternalCameraIntrinsicsOCULUS.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newXrExternalCameraIntrinsicsOCULUS
instance for the specified memory address.create
(long address, int capacity) Create aXrExternalCameraIntrinsicsOCULUS.Buffer
instance at the specified memory.static @Nullable XrExternalCameraIntrinsicsOCULUS
createSafe
(long address) static @Nullable XrExternalCameraIntrinsicsOCULUS.Buffer
createSafe
(long address, int capacity) fov()
Passes thefov
field to the specifiedConsumer
.Copies the specifiedXrFovf
to thefov
field.imageSensorPixelResolution
(Consumer<XrExtent2Di> consumer) Passes theimageSensorPixelResolution
field to the specifiedConsumer
.Copies the specifiedXrExtent2Di
to theimageSensorPixelResolution
field.long
lastChangeTime
(long value) Sets the specified value to thelastChangeTime
field.malloc()
Returns a newXrExternalCameraIntrinsicsOCULUS
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newXrExternalCameraIntrinsicsOCULUS.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newXrExternalCameraIntrinsicsOCULUS.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newXrExternalCameraIntrinsicsOCULUS
instance allocated on the specifiedMemoryStack
.static XrFovf
nfov
(long struct) Unsafe version offov()
.static void
Unsafe version offov
.static XrExtent2Di
nimageSensorPixelResolution
(long struct) Unsafe version ofimageSensorPixelResolution()
.static void
nimageSensorPixelResolution
(long struct, XrExtent2Di value) Unsafe version ofimageSensorPixelResolution
.static long
nlastChangeTime
(long struct) Unsafe version oflastChangeTime()
.static void
nlastChangeTime
(long struct, long value) Unsafe version oflastChangeTime
.static float
nvirtualFarPlaneDistance
(long struct) Unsafe version ofvirtualFarPlaneDistance()
.static void
nvirtualFarPlaneDistance
(long struct, float value) Unsafe version ofvirtualFarPlaneDistance
.static float
nvirtualNearPlaneDistance
(long struct) Unsafe version ofvirtualNearPlaneDistance()
.static void
nvirtualNearPlaneDistance
(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.int
sizeof()
Returnssizeof(struct)
.float
virtualFarPlaneDistance
(float value) Sets the specified value to thevirtualFarPlaneDistance
field.float
virtualNearPlaneDistance
(float value) Sets the specified value to thevirtualNearPlaneDistance
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aXrExternalCameraIntrinsicsOCULUS
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XrExternalCameraIntrinsicsOCULUS>
-
lastChangeTime
public long lastChangeTime()- Returns:
- the value of the
lastChangeTime
field.
-
fov
- Returns:
- a
XrFovf
view of thefov
field.
-
virtualNearPlaneDistance
public float virtualNearPlaneDistance()- Returns:
- the value of the
virtualNearPlaneDistance
field.
-
virtualFarPlaneDistance
public float virtualFarPlaneDistance()- Returns:
- the value of the
virtualFarPlaneDistance
field.
-
imageSensorPixelResolution
- Returns:
- a
XrExtent2Di
view of theimageSensorPixelResolution
field.
-
lastChangeTime
Sets the specified value to thelastChangeTime
field. -
fov
Copies the specifiedXrFovf
to thefov
field. -
fov
Passes thefov
field to the specifiedConsumer
. -
virtualNearPlaneDistance
Sets the specified value to thevirtualNearPlaneDistance
field. -
virtualFarPlaneDistance
Sets the specified value to thevirtualFarPlaneDistance
field. -
imageSensorPixelResolution
Copies the specifiedXrExtent2Di
to theimageSensorPixelResolution
field. -
imageSensorPixelResolution
Passes theimageSensorPixelResolution
field 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 newXrExternalCameraIntrinsicsOCULUS
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrExternalCameraIntrinsicsOCULUS
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrExternalCameraIntrinsicsOCULUS
instance allocated withBufferUtils
. -
create
Returns a newXrExternalCameraIntrinsicsOCULUS
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrExternalCameraIntrinsicsOCULUS.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrExternalCameraIntrinsicsOCULUS.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrExternalCameraIntrinsicsOCULUS.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrExternalCameraIntrinsicsOCULUS.Buffer
instance 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 newXrExternalCameraIntrinsicsOCULUS
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrExternalCameraIntrinsicsOCULUS
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrExternalCameraIntrinsicsOCULUS.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrExternalCameraIntrinsicsOCULUS.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-