HmdToEyePose is the same value-pair provided in OVREyeRenderDesc. Modifying this value is suggested only if the app is forcing monoscopic
rendering and requires that all layers including quad layers show up in a monoscopic fashion.HmdSpaceToWorldScaleInMeters is used to scale player motion into in-application units.In other words, it is how big an in-application unit is in the player's physical meters. For example, if the application uses inches as its units then
HmdSpaceToWorldScaleInMeters would be 0.0254. Note that if you are scaling the player in size, this must also scale. So if your application
units are inches, but you're shrinking the player to half their normal size, then HmdSpaceToWorldScaleInMeters would be 0.0254*2.0.
struct ovrViewScaleDesc {
ovrPosef HmdToEyePose[ovrEye_Count];
float HmdSpaceToWorldScaleInMeters;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | OVRViewScaleDesc.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | HMDSPACETOWORLDSCALEINMETERS
The struct member offsets. |
| public static final int | HMDTOEYEPOSE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | OVRViewScaleDesc(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static OVRViewScaleDesc | |
| public static OVRViewScaleDesc. | calloc(int
the buffer capacity capacity)Returns a new |
| public static OVRViewScaleDesc | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRViewScaleDesc. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRViewScaleDesc | |
| public static OVRViewScaleDesc | |
| public static OVRViewScaleDesc. | |
| public static OVRViewScaleDesc. | |
| protected OVRViewScaleDesc | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static OVRViewScaleDesc | |
| public static OVRViewScaleDesc | |
| public static OVRViewScaleDesc. | create(int
the buffer capacity capacity)Returns a new |
| public static OVRViewScaleDesc. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static OVRViewScaleDesc | |
| public static OVRViewScaleDesc. | |
| public float | |
| public OVRViewScaleDesc | HmdSpaceToWorldScaleInMeters(float value)
Sets the specified value to the |
| public OVRPosef. | |
| public OVRPosef | |
| public OVRViewScaleDesc | |
| public OVRViewScaleDesc | HmdToEyePose(int index, OVRPosef value)
Copies the specified |
| public OVRViewScaleDesc | HmdToEyePose(Consumer<OVRPosef.
Passes the |
| public OVRViewScaleDesc | HmdToEyePose(int index, Consumer<OVRPosef> consumer)
Passes the element at |
| public static OVRViewScaleDesc | |
| public static OVRViewScaleDesc. | malloc(int
the buffer capacity capacity)Returns a new |
| public static OVRViewScaleDesc | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRViewScaleDesc. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRViewScaleDesc | |
| public static OVRViewScaleDesc | |
| public static OVRViewScaleDesc. | |
| public static OVRViewScaleDesc. | |
| public static float | |
| public static void | nHmdSpaceToWorldScaleInMeters(long struct, float value)
Unsafe version of |
| public static OVRPosef. | |
| public static OVRPosef | |
| public static void | |
| public static void | |
| public OVRViewScaleDesc | |
| public OVRViewScaleDesc | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| HMDSPACETOWORLDSCALEINMETERS | back to summary |
|---|---|
| public static final int HMDSPACETOWORLDSCALEINMETERS The struct member offsets. | |
| HMDTOEYEPOSE | back to summary |
|---|---|
| public static final int HMDTOEYEPOSE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| OVRViewScaleDesc | back to summary |
|---|---|
| protected OVRViewScaleDesc(long address, ByteBuffer container) | |
| OVRViewScaleDesc | back to summary |
|---|---|
| public OVRViewScaleDesc(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static OVRViewScaleDesc calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static OVRViewScaleDesc. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OVRViewScaleDesc calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OVRViewScaleDesc. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static OVRViewScaleDesc callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRViewScaleDesc callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRViewScaleDesc. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRViewScaleDesc. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected OVRViewScaleDesc create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static OVRViewScaleDesc create() Returns a new | |
| create | back to summary |
|---|---|
| public static OVRViewScaleDesc create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static OVRViewScaleDesc. Returns a new
| |
| create | back to summary |
|---|---|
| public static OVRViewScaleDesc. Create a
| |
| createSafe | back to summary |
|---|---|
| public static OVRViewScaleDesc createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static OVRViewScaleDesc. Like
| |
| HmdSpaceToWorldScaleInMeters | back to summary |
|---|---|
| public float HmdSpaceToWorldScaleInMeters() ratio of viewer units to meter units | |
| HmdSpaceToWorldScaleInMeters | back to summary |
|---|---|
| public OVRViewScaleDesc HmdSpaceToWorldScaleInMeters(float value) Sets the specified value to the | |
| HmdToEyePose | back to summary |
|---|---|
| public OVRPosef. transform of each eye from the HMD center, in meters
| |
| HmdToEyePose | back to summary |
|---|---|
| public OVRPosef HmdToEyePose(int index) transform of each eye from the HMD center, in meters
| |
| HmdToEyePose | back to summary |
|---|---|
| public OVRViewScaleDesc HmdToEyePose(OVRPosef. Copies the specified | |
| HmdToEyePose | back to summary |
|---|---|
| public OVRViewScaleDesc HmdToEyePose(int index, OVRPosef value) Copies the specified | |
| HmdToEyePose | back to summary |
|---|---|
| public OVRViewScaleDesc HmdToEyePose(Consumer<OVRPosef. Passes the | |
| HmdToEyePose | back to summary |
|---|---|
| public OVRViewScaleDesc HmdToEyePose(int index, Consumer<OVRPosef> consumer) Passes the element at | |
| malloc | back to summary |
|---|---|
| public static OVRViewScaleDesc malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static OVRViewScaleDesc. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OVRViewScaleDesc malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OVRViewScaleDesc. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static OVRViewScaleDesc mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRViewScaleDesc mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRViewScaleDesc. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRViewScaleDesc. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nHmdSpaceToWorldScaleInMeters | back to summary |
|---|---|
| public static float nHmdSpaceToWorldScaleInMeters(long struct) Unsafe version of | |
| nHmdSpaceToWorldScaleInMeters | back to summary |
|---|---|
| public static void nHmdSpaceToWorldScaleInMeters(long struct, float value) Unsafe version of | |
| nHmdToEyePose | back to summary |
|---|---|
| public static OVRPosef. Unsafe version of | |
| nHmdToEyePose | back to summary |
|---|---|
| public static OVRPosef nHmdToEyePose(long struct, int index) Unsafe version of | |
| nHmdToEyePose | back to summary |
|---|---|
| public static void nHmdToEyePose(long struct, OVRPosef. Unsafe version of | |
| nHmdToEyePose | back to summary |
|---|---|
| public static void nHmdToEyePose(long struct, int index, OVRPosef value) Unsafe version of | |
| set | back to summary |
|---|---|
| public OVRViewScaleDesc set(OVRPosef. Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public OVRViewScaleDesc set(OVRViewScaleDesc src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
OVRViewScaleDesc structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final OVRViewScaleDesc |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final OVRViewScaleDesc ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| getElementFactory | back to summary |
|---|---|
| protected OVRViewScaleDesc getElementFactory() Implements abstract org.
| |
| HmdSpaceToWorldScaleInMeters | back to summary |
|---|---|
public float HmdSpaceToWorldScaleInMeters()
| |
| HmdSpaceToWorldScaleInMeters | back to summary |
|---|---|
| public OVRViewScaleDesc. Sets the specified value to the | |
| HmdToEyePose | back to summary |
|---|---|
public OVRPosef.
| |
| HmdToEyePose | back to summary |
|---|---|
public OVRPosef HmdToEyePose(int index)
| |
| HmdToEyePose | back to summary |
|---|---|
| public OVRViewScaleDesc. Copies the specified | |
| HmdToEyePose | back to summary |
|---|---|
| public OVRViewScaleDesc. Copies the specified | |
| HmdToEyePose | back to summary |
|---|---|
| public OVRViewScaleDesc. Passes the | |
| HmdToEyePose | back to summary |
|---|---|
| public OVRViewScaleDesc. Passes the element at | |
| self | back to summary |
|---|---|
| protected OVRViewScaleDesc. Implements abstract org.
| |