Record Class XrExternalCameraIntrinsicsOCULUS
java.lang.Object
java.lang.Record
club.doki7.openxr.datatype.XrExternalCameraIntrinsicsOCULUS
- All Implemented Interfaces:
IPointer
,IXrExternalCameraIntrinsicsOCULUS
@ValueBasedCandidate
@UnsafeConstructor
public record XrExternalCameraIntrinsicsOCULUS(@NotNull MemorySegment segment)
extends Record
implements IXrExternalCameraIntrinsicsOCULUS
Represents a pointer to a XrExternalCameraIntrinsicsOCULUS
structure in native memory.
Structure
typedef struct XrExternalCameraIntrinsicsOCULUS {
XrTime lastChangeTime
;
XrFovf
fov
;
float virtualNearPlaneDistance
;
float virtualFarPlaneDistance
;
XrExtent2Di
imageSensorPixelResolution
;
} XrExternalCameraIntrinsicsOCULUS;
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array ofXrExternalCameraIntrinsicsOCULUS
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final StructLayout
static final StructLayout
static final ValueLayout.OfLong
static final ValueLayout.OfFloat
static final ValueLayout.OfFloat
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionXrExternalCameraIntrinsicsOCULUS
(@NotNull MemorySegment segment) Creates an instance of aXrExternalCameraIntrinsicsOCULUS
record class. -
Method Summary
Modifier and TypeMethodDescriptionclone
(Arena arena, XrExternalCameraIntrinsicsOCULUS src) final boolean
Indicates whether some other object is "equal to" this one.@NotNull XrFovf
fov()
final int
hashCode()
Returns a hash code value for this object.@NotNull XrExtent2Di
imageSensorPixelResolution
(@NotNull XrExtent2Di value) imageSensorPixelResolution
(Consumer<@NotNull XrExtent2Di> consumer) long
lastChangeTime
(long value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.float
virtualFarPlaneDistance
(float value) float
virtualNearPlaneDistance
(float value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$lastChangeTime
-
PATH$fov
-
PATH$virtualNearPlaneDistance
-
PATH$virtualFarPlaneDistance
-
PATH$imageSensorPixelResolution
-
LAYOUT$lastChangeTime
-
LAYOUT$fov
-
LAYOUT$virtualNearPlaneDistance
-
LAYOUT$virtualFarPlaneDistance
-
LAYOUT$imageSensorPixelResolution
-
SIZE$lastChangeTime
public static final long SIZE$lastChangeTime -
SIZE$fov
public static final long SIZE$fov -
SIZE$virtualNearPlaneDistance
public static final long SIZE$virtualNearPlaneDistance -
SIZE$virtualFarPlaneDistance
public static final long SIZE$virtualFarPlaneDistance -
SIZE$imageSensorPixelResolution
public static final long SIZE$imageSensorPixelResolution -
OFFSET$lastChangeTime
public static final long OFFSET$lastChangeTime -
OFFSET$fov
public static final long OFFSET$fov -
OFFSET$virtualNearPlaneDistance
public static final long OFFSET$virtualNearPlaneDistance -
OFFSET$virtualFarPlaneDistance
public static final long OFFSET$virtualFarPlaneDistance -
OFFSET$imageSensorPixelResolution
public static final long OFFSET$imageSensorPixelResolution
-
-
Constructor Details
-
XrExternalCameraIntrinsicsOCULUS
Creates an instance of aXrExternalCameraIntrinsicsOCULUS
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static XrExternalCameraIntrinsicsOCULUS clone(Arena arena, XrExternalCameraIntrinsicsOCULUS src) -
lastChangeTime
-
lastChangeTime
-
fov
-
fov
-
fov
-
virtualNearPlaneDistance
public float virtualNearPlaneDistance() -
virtualNearPlaneDistance
-
virtualFarPlaneDistance
public float virtualFarPlaneDistance() -
virtualFarPlaneDistance
-
imageSensorPixelResolution
-
imageSensorPixelResolution
public XrExternalCameraIntrinsicsOCULUS imageSensorPixelResolution(@NotNull @NotNull XrExtent2Di value) -
imageSensorPixelResolution
public XrExternalCameraIntrinsicsOCULUS imageSensorPixelResolution(Consumer<@NotNull XrExtent2Di> consumer) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-