Package org.lwjgl.ovr
Class OVREyeRenderDesc
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
rendering information for each eye. Computed by either
GetRenderDesc
based on the specified FOV. Note that the rendering viewport is not
included here as it can be specified separately and modified per frame by passing different viewport values in the layer structure.
Layout
struct ovrEyeRenderDesc {
ovrEyeType Eye()
;
ovrFovPort
Fov()
;
ovrRecti
DistortedViewport()
;
ovrVector2f
PixelsPerTanAngleAtCenter()
;
ovrPosef
HmdToEyePose()
;
}
-
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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionOVREyeRenderDesc
(ByteBuffer container) Creates aOVREyeRenderDesc
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVREyeRenderDesc
calloc()
Returns a newOVREyeRenderDesc
instance allocated withmemCalloc
.static OVREyeRenderDesc.Buffer
calloc
(int capacity) Returns a newOVREyeRenderDesc.Buffer
instance allocated withmemCalloc
.static OVREyeRenderDesc.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newOVREyeRenderDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVREyeRenderDesc
calloc
(MemoryStack stack) Returns a newOVREyeRenderDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVREyeRenderDesc
Deprecated.static OVREyeRenderDesc.Buffer
callocStack
(int capacity) Deprecated.static OVREyeRenderDesc.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static OVREyeRenderDesc
callocStack
(MemoryStack stack) Deprecated.static OVREyeRenderDesc
create()
Returns a newOVREyeRenderDesc
instance allocated withBufferUtils
.static OVREyeRenderDesc.Buffer
create
(int capacity) Returns a newOVREyeRenderDesc.Buffer
instance allocated withBufferUtils
.static OVREyeRenderDesc
create
(long address) Returns a newOVREyeRenderDesc
instance for the specified memory address.static OVREyeRenderDesc.Buffer
create
(long address, int capacity) Create aOVREyeRenderDesc.Buffer
instance at the specified memory.static OVREyeRenderDesc
createSafe
(long address) static OVREyeRenderDesc.Buffer
createSafe
(long address, int capacity) distortion viewportint
Eye()
the eye index this instance corresponds to.Fov()
the field of viewtransform of eye from the HMD center, in metersstatic OVREyeRenderDesc
malloc()
Returns a newOVREyeRenderDesc
instance allocated withmemAlloc
.static OVREyeRenderDesc.Buffer
malloc
(int capacity) Returns a newOVREyeRenderDesc.Buffer
instance allocated withmemAlloc
.static OVREyeRenderDesc.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newOVREyeRenderDesc.Buffer
instance allocated on the specifiedMemoryStack
.static OVREyeRenderDesc
malloc
(MemoryStack stack) Returns a newOVREyeRenderDesc
instance allocated on the specifiedMemoryStack
.static OVREyeRenderDesc
Deprecated.static OVREyeRenderDesc.Buffer
mallocStack
(int capacity) Deprecated.static OVREyeRenderDesc.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static OVREyeRenderDesc
mallocStack
(MemoryStack stack) Deprecated.static OVRRecti
nDistortedViewport
(long struct) Unsafe version ofDistortedViewport()
.static int
nEye
(long struct) Unsafe version ofEye()
.static OVRFovPort
nFov
(long struct) Unsafe version ofFov()
.static OVRPosef
nHmdToEyePose
(long struct) Unsafe version ofHmdToEyePose()
.static OVRVector2f
nPixelsPerTanAngleAtCenter
(long struct) Unsafe version ofPixelsPerTanAngleAtCenter()
.wow many display pixels will fit in tan(angle) = 1int
sizeof()
Returnssizeof(struct)
.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. -
EYE
public static final int EYEThe struct member offsets. -
FOV
public static final int FOVThe struct member offsets. -
DISTORTEDVIEWPORT
public static final int DISTORTEDVIEWPORTThe struct member offsets. -
PIXELSPERTANANGLEATCENTER
public static final int PIXELSPERTANANGLEATCENTERThe struct member offsets. -
HMDTOEYEPOSE
public static final int HMDTOEYEPOSEThe struct member offsets.
-
-
Constructor Details
-
OVREyeRenderDesc
Creates aOVREyeRenderDesc
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<OVREyeRenderDesc>
-
Eye
public int Eye() -
Fov
the field of view -
DistortedViewport
distortion viewport -
PixelsPerTanAngleAtCenter
wow many display pixels will fit in tan(angle) = 1 -
HmdToEyePose
transform of eye from the HMD center, in meters -
malloc
Returns a newOVREyeRenderDesc
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOVREyeRenderDesc
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOVREyeRenderDesc
instance allocated withBufferUtils
. -
create
Returns a newOVREyeRenderDesc
instance for the specified memory address. -
createSafe
-
malloc
Returns a newOVREyeRenderDesc.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newOVREyeRenderDesc.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newOVREyeRenderDesc.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aOVREyeRenderDesc.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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newOVREyeRenderDesc
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOVREyeRenderDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newOVREyeRenderDesc.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newOVREyeRenderDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nEye
public static int nEye(long struct) Unsafe version ofEye()
. -
nFov
Unsafe version ofFov()
. -
nDistortedViewport
Unsafe version ofDistortedViewport()
. -
nPixelsPerTanAngleAtCenter
Unsafe version ofPixelsPerTanAngleAtCenter()
. -
nHmdToEyePose
Unsafe version ofHmdToEyePose()
.
-