Package org.lwjgl.ovr
Class OVREyeRenderDesc
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVREyeRenderDesc>
org.lwjgl.ovr.OVREyeRenderDesc
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVREyeRenderDesc
extends org.lwjgl.system.Struct<OVREyeRenderDesc>
implements org.lwjgl.system.NativeResource
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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVREyeRenderDesc(ByteBuffer container) Creates aOVREyeRenderDescinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVREyeRenderDesccalloc()Returns a newOVREyeRenderDescinstance allocated withmemCalloc.static OVREyeRenderDesc.Buffercalloc(int capacity) Returns a newOVREyeRenderDesc.Bufferinstance allocated withmemCalloc.static OVREyeRenderDesc.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVREyeRenderDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVREyeRenderDesccalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVREyeRenderDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVREyeRenderDescDeprecated.static OVREyeRenderDesc.BuffercallocStack(int capacity) Deprecated.static OVREyeRenderDesc.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVREyeRenderDesccallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVREyeRenderDesccreate()Returns a newOVREyeRenderDescinstance allocated withBufferUtils.static OVREyeRenderDesc.Buffercreate(int capacity) Returns a newOVREyeRenderDesc.Bufferinstance allocated withBufferUtils.static OVREyeRenderDesccreate(long address) Returns a newOVREyeRenderDescinstance for the specified memory address.static OVREyeRenderDesc.Buffercreate(long address, int capacity) Create aOVREyeRenderDesc.Bufferinstance at the specified memory.static @Nullable OVREyeRenderDesccreateSafe(long address) static @Nullable OVREyeRenderDesc.BuffercreateSafe(long address, int capacity) distortion viewportintEye()the eye index this instance corresponds to.Fov()the field of viewtransform of eye from the HMD center, in metersstatic OVREyeRenderDescmalloc()Returns a newOVREyeRenderDescinstance allocated withmemAlloc.static OVREyeRenderDesc.Buffermalloc(int capacity) Returns a newOVREyeRenderDesc.Bufferinstance allocated withmemAlloc.static OVREyeRenderDesc.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVREyeRenderDesc.Bufferinstance allocated on the specifiedMemoryStack.static OVREyeRenderDescmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVREyeRenderDescinstance allocated on the specifiedMemoryStack.static OVREyeRenderDescDeprecated.static OVREyeRenderDesc.BuffermallocStack(int capacity) Deprecated.static OVREyeRenderDesc.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVREyeRenderDescmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRRectinDistortedViewport(long struct) Unsafe version ofDistortedViewport().static intnEye(long struct) Unsafe version ofEye().static OVRFovPortnFov(long struct) Unsafe version ofFov().static OVRPosefnHmdToEyePose(long struct) Unsafe version ofHmdToEyePose().static OVRVector2fnPixelsPerTanAngleAtCenter(long struct) Unsafe version ofPixelsPerTanAngleAtCenter().wow many display pixels will fit in tan(angle) = 1intsizeof()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. -
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 aOVREyeRenderDescinstance 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<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 newOVREyeRenderDescinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVREyeRenderDescinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVREyeRenderDescinstance allocated withBufferUtils. -
create
Returns a newOVREyeRenderDescinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVREyeRenderDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVREyeRenderDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVREyeRenderDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVREyeRenderDesc.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 OVREyeRenderDesc.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 OVREyeRenderDesc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVREyeRenderDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVREyeRenderDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVREyeRenderDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVREyeRenderDesc.Bufferinstance allocated on the specifiedMemoryStackand 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().
-