Package org.lwjgl.ovr
Class OVRLayerEyeFovMultires
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class OVRLayerEyeFovMultires
extends Struct<OVRLayerEyeFovMultires>
implements NativeResource
Describes a layer that specifies a monoscopic or stereoscopic view with support for optional multiresolution textures. This struct is the same as
OVRLayerEyeFov
plus texture layout parameters.
Three options exist with respect to mono/stereo texture usage:
ColorTexture[0]
andColorTexture[1]
contain the left and right stereo renderings, respectively.Viewport[0]
andViewport[1]
refer toColorTexture[0]
andColorTexture[1]
, respectively.ColorTexture[0]
contains both the left and right renderings,ColorTexture[1]
isNULL
, andViewport[0]
andViewport[1]
refer to sub-rects withColorTexture[0]
.ColorTexture[0]
contains a single monoscopic rendering, andViewport[0]
andViewport[1]
both refer to that rendering.
Layout
struct ovrLayerEyeFovMultires {
ovrLayerHeader
Header()
;
ovrTextureSwapChain ColorTexture()
[ovrEye_Count];
ovrRecti
Viewport()
[ovrEye_Count];
ovrFovPort
Fov()
[ovrEye_Count];
ovrPosef
RenderPose()
[ovrEye_Count];
double SensorSampleTime()
;
ovrTextureLayout TextureLayout()
;
ovrTextureLayoutDesc_Union
TextureLayoutDesc()
;
}
-
Nested Class Summary
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
Modifier 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 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.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
ConstructorDescriptionOVRLayerEyeFovMultires
(ByteBuffer container) Creates aOVRLayerEyeFovMultires
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRLayerEyeFovMultires
calloc()
Returns a newOVRLayerEyeFovMultires
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newOVRLayerEyeFovMultires.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newOVRLayerEyeFovMultires.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRLayerEyeFovMultires
calloc
(MemoryStack stack) Returns a newOVRLayerEyeFovMultires
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRLayerEyeFovMultires
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static OVRLayerEyeFovMultires
callocStack
(MemoryStack stack) Deprecated.ovrTextureSwapChains
for the left and right eye respectively.long
ColorTexture
(int index) ovrTextureSwapChains
for the left and right eye respectively.ColorTexture
(int index, long value) Sets the specified value at the specified index of theColorTexture()
field.ColorTexture
(PointerBuffer value) Copies the specifiedPointerBuffer
to theColorTexture()
field.static OVRLayerEyeFovMultires
create()
Returns a newOVRLayerEyeFovMultires
instance allocated withBufferUtils
.create
(int capacity) Returns a newOVRLayerEyeFovMultires.Buffer
instance allocated withBufferUtils
.static OVRLayerEyeFovMultires
create
(long address) Returns a newOVRLayerEyeFovMultires
instance for the specified memory address.create
(long address, int capacity) Create aOVRLayerEyeFovMultires.Buffer
instance at the specified memory.static OVRLayerEyeFovMultires
createSafe
(long address) createSafe
(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 specifiedOVRFovPort
at the specified index of theFov()
field.Fov
(Consumer<OVRFovPort.Buffer> consumer) Fov
(OVRFovPort.Buffer value) Copies the specifiedOVRFovPort.Buffer
to theFov()
field.Header()
Header.Type
must beLayerType_EyeFovMultires
Header
(Consumer<OVRLayerHeader> consumer) Header
(OVRLayerHeader value) Copies the specifiedOVRLayerHeader
to theHeader()
field.static OVRLayerEyeFovMultires
malloc()
Returns a newOVRLayerEyeFovMultires
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newOVRLayerEyeFovMultires.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newOVRLayerEyeFovMultires.Buffer
instance allocated on the specifiedMemoryStack
.static OVRLayerEyeFovMultires
malloc
(MemoryStack stack) Returns a newOVRLayerEyeFovMultires
instance allocated on the specifiedMemoryStack
.static OVRLayerEyeFovMultires
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static OVRLayerEyeFovMultires
mallocStack
(MemoryStack stack) Deprecated.static PointerBuffer
nColorTexture
(long struct) Unsafe version ofColorTexture()
.static long
nColorTexture
(long struct, int index) Unsafe version ofColorTexture
.static void
nColorTexture
(long struct, int index, long value) Unsafe version ofColorTexture
.static void
nColorTexture
(long struct, PointerBuffer value) Unsafe version ofColorTexture
.static OVRFovPort.Buffer
nFov
(long struct) Unsafe version ofFov()
.static OVRFovPort
nFov
(long struct, int index) Unsafe version ofFov
.static void
nFov
(long struct, int index, OVRFovPort value) Unsafe version ofFov
.static void
nFov
(long struct, OVRFovPort.Buffer value) Unsafe version ofFov
.static OVRLayerHeader
nHeader
(long struct) Unsafe version ofHeader()
.static void
nHeader
(long struct, OVRLayerHeader value) Unsafe version ofHeader
.static OVRPosef.Buffer
nRenderPose
(long struct) Unsafe version ofRenderPose()
.static OVRPosef
nRenderPose
(long struct, int index) Unsafe version ofRenderPose
.static void
nRenderPose
(long struct, int index, OVRPosef value) Unsafe version ofRenderPose
.static void
nRenderPose
(long struct, OVRPosef.Buffer value) Unsafe version ofRenderPose
.static double
nSensorSampleTime
(long struct) Unsafe version ofSensorSampleTime()
.static void
nSensorSampleTime
(long struct, double value) Unsafe version ofSensorSampleTime
.static int
nTextureLayout
(long struct) Unsafe version ofTextureLayout()
.static void
nTextureLayout
(long struct, int value) Unsafe version ofTextureLayout
.static OVRTextureLayoutDescUnion
nTextureLayoutDesc
(long struct) Unsafe version ofTextureLayoutDesc()
.static void
nTextureLayoutDesc
(long struct, OVRTextureLayoutDescUnion value) Unsafe version ofTextureLayoutDesc
.static OVRRecti.Buffer
nViewport
(long struct) Unsafe version ofViewport()
.static OVRRecti
nViewport
(long struct, int index) Unsafe version ofViewport
.static void
Unsafe version ofViewport
.static void
nViewport
(long struct, OVRRecti.Buffer value) Unsafe version ofViewport
.specifies the position and orientation of each eye view, with position specified in meters.RenderPose
(int index) specifies the position and orientation of each eye view, with position specified in meters.RenderPose
(int index, Consumer<OVRPosef> consumer) RenderPose
(int index, OVRPosef value) Copies the specifiedOVRPosef
at the specified index of theRenderPose()
field.RenderPose
(Consumer<OVRPosef.Buffer> consumer) Passes theRenderPose()
field to the specifiedConsumer
.RenderPose
(OVRPosef.Buffer value) Copies the specifiedOVRPosef.Buffer
to theRenderPose()
field.double
specifies the timestamp when the sourceOVRPosef
(used in calculatingRenderPose
) was sampled from the SDK.SensorSampleTime
(double value) Sets the specified value to theSensorSampleTime()
field.Copies the specified struct data to this struct.set
(OVRLayerHeader Header, PointerBuffer ColorTexture, OVRRecti.Buffer Viewport, OVRFovPort.Buffer Fov, OVRPosef.Buffer RenderPose, double SensorSampleTime, int TextureLayout, OVRTextureLayoutDescUnion TextureLayoutDesc) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.int
specifies layout type of texturesTextureLayout
(int value) Sets the specified value to theTextureLayout()
field.specifies texture layout parametersTextureLayoutDesc
(Consumer<OVRTextureLayoutDescUnion> consumer) Passes theTextureLayoutDesc()
field to the specifiedConsumer
.Copies the specifiedOVRTextureLayoutDescUnion
to theTextureLayoutDesc()
field.static void
validate
(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 specifiedOVRRecti
at the specified index of theViewport()
field.Viewport
(Consumer<OVRRecti.Buffer> consumer) Passes theViewport()
field to the specifiedConsumer
.Viewport
(OVRRecti.Buffer value) Copies the specifiedOVRRecti.Buffer
to theViewport()
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. -
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. -
TEXTURELAYOUT
public static final int TEXTURELAYOUTThe struct member offsets. -
TEXTURELAYOUTDESC
public static final int TEXTURELAYOUTDESCThe struct member offsets.
-
-
Constructor Details
-
OVRLayerEyeFovMultires
Creates aOVRLayerEyeFovMultires
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<OVRLayerEyeFovMultires>
-
Header
Header.Type
must beLayerType_EyeFovMultires
-
ColorTexture
ovrTextureSwapChains
for the left and right eye respectively. The second one of which can beNULL
for cases described above. -
ColorTexture
public long ColorTexture(int index) ovrTextureSwapChains
for the left and right eye respectively. The second one of which can beNULL
for cases described above. -
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 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 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 calculatingRenderPose
) was sampled from the SDK. Typically retrieved by callingGetTimeInSeconds
around the instant the application callsGetTrackingState
. The main purpose for this is to accurately track app tracking latency. -
TextureLayout
public int TextureLayout()specifies layout type of textures -
TextureLayoutDesc
specifies texture layout parameters -
Header
Copies the specifiedOVRLayerHeader
to theHeader()
field. -
Header
-
ColorTexture
Copies the specifiedPointerBuffer
to theColorTexture()
field. -
ColorTexture
Sets the specified value at the specified index of theColorTexture()
field. -
Viewport
Copies the specifiedOVRRecti.Buffer
to theViewport()
field. -
Viewport
Copies the specifiedOVRRecti
at the specified index of theViewport()
field. -
Viewport
Passes theViewport()
field to the specifiedConsumer
. -
Viewport
-
Fov
Copies the specifiedOVRFovPort.Buffer
to theFov()
field. -
Fov
Copies the specifiedOVRFovPort
at the specified index of theFov()
field. -
Fov
-
Fov
-
RenderPose
Copies the specifiedOVRPosef.Buffer
to theRenderPose()
field. -
RenderPose
Copies the specifiedOVRPosef
at the specified index of theRenderPose()
field. -
RenderPose
Passes theRenderPose()
field to the specifiedConsumer
. -
RenderPose
-
SensorSampleTime
Sets the specified value to theSensorSampleTime()
field. -
TextureLayout
Sets the specified value to theTextureLayout()
field. -
TextureLayoutDesc
Copies the specifiedOVRTextureLayoutDescUnion
to theTextureLayoutDesc()
field. -
TextureLayoutDesc
Passes theTextureLayoutDesc()
field to the specifiedConsumer
. -
set
public OVRLayerEyeFovMultires set(OVRLayerHeader Header, PointerBuffer ColorTexture, OVRRecti.Buffer Viewport, OVRFovPort.Buffer Fov, OVRPosef.Buffer RenderPose, double SensorSampleTime, int TextureLayout, OVRTextureLayoutDescUnion TextureLayoutDesc) 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 newOVRLayerEyeFovMultires
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOVRLayerEyeFovMultires
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOVRLayerEyeFovMultires
instance allocated withBufferUtils
. -
create
Returns a newOVRLayerEyeFovMultires
instance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRLayerEyeFovMultires.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newOVRLayerEyeFovMultires.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newOVRLayerEyeFovMultires.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aOVRLayerEyeFovMultires.Buffer
instance 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 OVRLayerEyeFovMultires.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static OVRLayerEyeFovMultires.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newOVRLayerEyeFovMultires
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOVRLayerEyeFovMultires
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newOVRLayerEyeFovMultires.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newOVRLayerEyeFovMultires.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nHeader
Unsafe version ofHeader()
. -
nColorTexture
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()
. -
nTextureLayout
public static int nTextureLayout(long struct) Unsafe version ofTextureLayout()
. -
nTextureLayoutDesc
Unsafe version ofTextureLayoutDesc()
. -
nHeader
Unsafe version ofHeader
. -
nColorTexture
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
. -
nTextureLayout
public static void nTextureLayout(long struct, int value) Unsafe version ofTextureLayout
. -
nTextureLayoutDesc
Unsafe version ofTextureLayoutDesc
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-