Package org.lwjgl.ovr
Class OVRLayerEyeFov
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRLayerEyeFov>
org.lwjgl.ovr.OVRLayerEyeFov
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRLayerEyeFov
extends org.lwjgl.system.Struct<OVRLayerEyeFov>
implements org.lwjgl.system.NativeResource
Describes a layer that specifies a monoscopic or stereoscopic view. This is the kind of layer that's typically used as layer 0 to
SubmitFrame, as it is the kind of layer used to render a 3D stereoscopic view.
Layout
struct ovrLayerEyeFov {
ovrLayerHeader Header();
ovrTextureSwapChain ColorTexture()[ovrEye_Count];
ovrRecti Viewport()[ovrEye_Count];
ovrFovPort Fov()[ovrEye_Count];
ovrPosef RenderPose()[ovrEye_Count];
double SensorSampleTime();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.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
ConstructorsConstructorDescriptionOVRLayerEyeFov(ByteBuffer container) Creates aOVRLayerEyeFovinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRLayerEyeFovcalloc()Returns a newOVRLayerEyeFovinstance allocated withmemCalloc.static OVRLayerEyeFov.Buffercalloc(int capacity) Returns a newOVRLayerEyeFov.Bufferinstance allocated withmemCalloc.static OVRLayerEyeFov.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerEyeFov.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRLayerEyeFovcalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerEyeFovinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRLayerEyeFovDeprecated.static OVRLayerEyeFov.BuffercallocStack(int capacity) Deprecated.static OVRLayerEyeFov.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRLayerEyeFovcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.org.lwjgl.PointerBufferovrTextureSwapChainsfor the left and right eye respectively.longColorTexture(int index) ovrTextureSwapChainsfor the left and right eye respectively.ColorTexture(int index, long value) Sets the specified value at the specified index of theColorTexture()field.ColorTexture(org.lwjgl.PointerBuffer value) Copies the specifiedPointerBufferto theColorTexture()field.static OVRLayerEyeFovcreate()Returns a newOVRLayerEyeFovinstance allocated withBufferUtils.static OVRLayerEyeFov.Buffercreate(int capacity) Returns a newOVRLayerEyeFov.Bufferinstance allocated withBufferUtils.static OVRLayerEyeFovcreate(long address) Returns a newOVRLayerEyeFovinstance for the specified memory address.static OVRLayerEyeFov.Buffercreate(long address, int capacity) Create aOVRLayerEyeFov.Bufferinstance at the specified memory.static @Nullable OVRLayerEyeFovcreateSafe(long address) static @Nullable OVRLayerEyeFov.BuffercreateSafe(long address, int capacity) Fov()the viewport field of viewFov(int index) the viewport field of viewFov(int index, Consumer<OVRFovPort> consumer) Fov(int index, OVRFovPort value) Copies the specifiedOVRFovPortat the specified index of theFov()field.Fov(Consumer<OVRFovPort.Buffer> consumer) Fov(OVRFovPort.Buffer value) Copies the specifiedOVRFovPort.Bufferto theFov()field.Header()Header.Typemust beLayerType_EyeFovHeader(Consumer<OVRLayerHeader> consumer) Header(OVRLayerHeader value) Copies the specifiedOVRLayerHeaderto theHeader()field.static OVRLayerEyeFovmalloc()Returns a newOVRLayerEyeFovinstance allocated withmemAlloc.static OVRLayerEyeFov.Buffermalloc(int capacity) Returns a newOVRLayerEyeFov.Bufferinstance allocated withmemAlloc.static OVRLayerEyeFov.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerEyeFov.Bufferinstance allocated on the specifiedMemoryStack.static OVRLayerEyeFovmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerEyeFovinstance allocated on the specifiedMemoryStack.static OVRLayerEyeFovDeprecated.static OVRLayerEyeFov.BuffermallocStack(int capacity) Deprecated.static OVRLayerEyeFov.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRLayerEyeFovmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static org.lwjgl.PointerBuffernColorTexture(long struct) Unsafe version ofColorTexture().static longnColorTexture(long struct, int index) Unsafe version ofColorTexture.static voidnColorTexture(long struct, int index, long value) Unsafe version ofColorTexture.static voidnColorTexture(long struct, org.lwjgl.PointerBuffer value) Unsafe version ofColorTexture.static OVRFovPort.BuffernFov(long struct) Unsafe version ofFov().static OVRFovPortnFov(long struct, int index) Unsafe version ofFov.static voidnFov(long struct, int index, OVRFovPort value) Unsafe version ofFov.static voidnFov(long struct, OVRFovPort.Buffer value) Unsafe version ofFov.static OVRLayerHeadernHeader(long struct) Unsafe version ofHeader().static voidnHeader(long struct, OVRLayerHeader value) Unsafe version ofHeader.static OVRPosef.BuffernRenderPose(long struct) Unsafe version ofRenderPose().static OVRPosefnRenderPose(long struct, int index) Unsafe version ofRenderPose.static voidnRenderPose(long struct, int index, OVRPosef value) Unsafe version ofRenderPose.static voidnRenderPose(long struct, OVRPosef.Buffer value) Unsafe version ofRenderPose.static doublenSensorSampleTime(long struct) Unsafe version ofSensorSampleTime().static voidnSensorSampleTime(long struct, double value) Unsafe version ofSensorSampleTime.static OVRRecti.BuffernViewport(long struct) Unsafe version ofViewport().static OVRRectinViewport(long struct, int index) Unsafe version ofViewport.static voidUnsafe version ofViewport.static voidnViewport(long struct, OVRRecti.Buffer value) Unsafe version ofViewport.specifies the position and orientation of each eye view, with the position specified in meters.RenderPose(int index) specifies the position and orientation of each eye view, with the position specified in meters.RenderPose(int index, Consumer<OVRPosef> consumer) RenderPose(int index, OVRPosef value) Copies the specifiedOVRPosefat the specified index of theRenderPose()field.RenderPose(Consumer<OVRPosef.Buffer> consumer) Passes theRenderPose()field to the specifiedConsumer.RenderPose(OVRPosef.Buffer value) Copies the specifiedOVRPosef.Bufferto theRenderPose()field.doublespecifies the timestamp when the sourceOVRPosef(used in calculating RenderPose) was sampled from the SDK.SensorSampleTime(double value) Sets the specified value to theSensorSampleTime()field.set(OVRLayerEyeFov src) Copies the specified struct data to this struct.set(OVRLayerHeader Header, org.lwjgl.PointerBuffer ColorTexture, OVRRecti.Buffer Viewport, OVRFovPort.Buffer Fov, OVRPosef.Buffer RenderPose, double SensorSampleTime) Initializes this struct with the specified values.intsizeof()static voidvalidate(long struct) Validates pointer members that should not beNULL.Viewport()specifies the ColorTexture sub-rect UV coordinates.Viewport(int index) specifies the ColorTexture sub-rect UV coordinates.Copies the specifiedOVRRectiat the specified index of theViewport()field.Viewport(Consumer<OVRRecti.Buffer> consumer) Passes theViewport()field to the specifiedConsumer.Viewport(OVRRecti.Buffer value) Copies the specifiedOVRRecti.Bufferto theViewport()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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. -
HEADER
public static final int HEADERThe struct member offsets. -
COLORTEXTURE
public static final int COLORTEXTUREThe struct member offsets. -
VIEWPORT
public static final int VIEWPORTThe struct member offsets. -
FOV
public static final int FOVThe struct member offsets. -
RENDERPOSE
public static final int RENDERPOSEThe struct member offsets. -
SENSORSAMPLETIME
public static final int SENSORSAMPLETIMEThe struct member offsets.
-
-
Constructor Details
-
OVRLayerEyeFov
Creates aOVRLayerEyeFovinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<OVRLayerEyeFov>
-
Header
Header.Typemust beLayerType_EyeFov -
ColorTexture
public org.lwjgl.PointerBuffer ColorTexture()ovrTextureSwapChainsfor the left and right eye respectively. The second one of which can beNULL. -
ColorTexture
public long ColorTexture(int index) ovrTextureSwapChainsfor the left and right eye respectively. The second one of which can beNULL. -
Viewport
specifies the ColorTexture sub-rect UV coordinates. BothViewport[0]andViewport[1]must be valid. -
Viewport
specifies the ColorTexture sub-rect UV coordinates. BothViewport[0]andViewport[1]must be valid. -
Fov
the viewport field of view -
Fov
the viewport field of view -
RenderPose
specifies the position and orientation of each eye view, with the position specified in meters. RenderPose will typically be the value returned from_CalcEyePoses, but can be different in special cases if a different head pose is used for rendering. -
RenderPose
specifies the position and orientation of each eye view, with the position specified in meters. RenderPose will typically be the value returned from_CalcEyePoses, but can be different in special cases if a different head pose is used for rendering. -
SensorSampleTime
public double SensorSampleTime()specifies the timestamp when the sourceOVRPosef(used in calculating RenderPose) was sampled from the SDK. Typically retrieved by callingGetTimeInSecondsaround the instant the application callsGetTrackingState. The main purpose for this is to accurately track app tracking latency. -
Header
Copies the specifiedOVRLayerHeaderto theHeader()field. -
Header
-
ColorTexture
Copies the specifiedPointerBufferto theColorTexture()field. -
ColorTexture
Sets the specified value at the specified index of theColorTexture()field. -
Viewport
Copies the specifiedOVRRecti.Bufferto theViewport()field. -
Viewport
Copies the specifiedOVRRectiat the specified index of theViewport()field. -
Viewport
Passes theViewport()field to the specifiedConsumer. -
Viewport
-
Fov
Copies the specifiedOVRFovPort.Bufferto theFov()field. -
Fov
Copies the specifiedOVRFovPortat the specified index of theFov()field. -
Fov
-
Fov
-
RenderPose
Copies the specifiedOVRPosef.Bufferto theRenderPose()field. -
RenderPose
Copies the specifiedOVRPosefat the specified index of theRenderPose()field. -
RenderPose
Passes theRenderPose()field to the specifiedConsumer. -
RenderPose
-
SensorSampleTime
Sets the specified value to theSensorSampleTime()field. -
set
public OVRLayerEyeFov set(OVRLayerHeader Header, org.lwjgl.PointerBuffer ColorTexture, OVRRecti.Buffer Viewport, OVRFovPort.Buffer Fov, OVRPosef.Buffer RenderPose, double SensorSampleTime) 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 newOVRLayerEyeFovinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRLayerEyeFovinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRLayerEyeFovinstance allocated withBufferUtils. -
create
Returns a newOVRLayerEyeFovinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRLayerEyeFov.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRLayerEyeFov.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRLayerEyeFov.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRLayerEyeFov.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static OVRLayerEyeFov.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static OVRLayerEyeFov.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRLayerEyeFovinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRLayerEyeFovinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRLayerEyeFov.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRLayerEyeFov.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nHeader
Unsafe version ofHeader(). -
nColorTexture
public static org.lwjgl.PointerBuffer nColorTexture(long struct) Unsafe version ofColorTexture(). -
nColorTexture
public static long nColorTexture(long struct, int index) Unsafe version ofColorTexture. -
nViewport
Unsafe version ofViewport(). -
nViewport
Unsafe version ofViewport. -
nFov
Unsafe version ofFov(). -
nFov
Unsafe version ofFov. -
nRenderPose
Unsafe version ofRenderPose(). -
nRenderPose
Unsafe version ofRenderPose. -
nSensorSampleTime
public static double nSensorSampleTime(long struct) Unsafe version ofSensorSampleTime(). -
nHeader
Unsafe version ofHeader. -
nColorTexture
public static void nColorTexture(long struct, org.lwjgl.PointerBuffer value) Unsafe version ofColorTexture. -
nColorTexture
public static void nColorTexture(long struct, int index, long value) Unsafe version ofColorTexture. -
nViewport
Unsafe version ofViewport. -
nViewport
Unsafe version ofViewport. -
nFov
Unsafe version ofFov. -
nFov
Unsafe version ofFov. -
nRenderPose
Unsafe version ofRenderPose. -
nRenderPose
Unsafe version ofRenderPose. -
nSensorSampleTime
public static void nSensorSampleTime(long struct, double value) Unsafe version ofSensorSampleTime. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-