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 recordRepresents a pointer to / an array ofXrExternalCameraIntrinsicsOCULUSstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final StructLayoutstatic final StructLayoutstatic final ValueLayout.OfLongstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionXrExternalCameraIntrinsicsOCULUS(@NotNull MemorySegment segment) Creates an instance of aXrExternalCameraIntrinsicsOCULUSrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone(Arena arena, XrExternalCameraIntrinsicsOCULUS src) final booleanIndicates whether some other object is "equal to" this one.@NotNull XrFovffov()final inthashCode()Returns a hash code value for this object.@NotNull XrExtent2DiimageSensorPixelResolution(@NotNull XrExtent2Di value) imageSensorPixelResolution(Consumer<@NotNull XrExtent2Di> consumer) longlastChangeTime(long value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.floatvirtualFarPlaneDistance(float value) floatvirtualNearPlaneDistance(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 aXrExternalCameraIntrinsicsOCULUSrecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-