Usage of this layer must be successfully enabled via EnableExtension before it can be used.
Size of W quadrants:
SizeLeft + SizeRight ≤ Viewport.Size.w
SizeUp + sizeDown ≤ Viewport.Size.h
Clip space (0,0) is located at Viewport.Pos + (SizeLeft,SizeUp) where
Viewport is given in the layer description.
Viewport Top left
+-----------------------------------------------------+
| ^ | |
| | | |
| 0 SizeUp 1 | |
| | |<--Portion of viewport
| | | determined by sizes
| | | |
|<--------SizeLeft-------+-------SizeRight------>| |
| | | |
| | | |
| 2 SizeDown 3 | |
| | | |
| | | |
| v | |
+------------------------------------------------+ |
| |
+-----------------------------------------------------+
Viewport bottom right
For example, when rendering quadrant 0 its scissor rectangle will be
Top = 0
Left = 0
Right = SizeLeft
Bottom = SizeUp
and the scissor rectangle for quadrant 1 will be:
Top = 0
Left = SizeLeft
Right = SizeLeft + SizeRight
Bottom = SizeUp
struct ovrTextureLayoutOctilinear {
float WarpLeft;
float WarpRight;
float WarpUp;
float WarpDown;
float SizeLeft;
float SizeRight;
float SizeUp;
float SizeDown;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | OVRTextureLayoutOctilinear.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | SIZEDOWN
The struct member offsets. |
| public static final int | SIZELEFT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SIZERIGHT
The struct member offsets. |
| public static final int | SIZEUP
The struct member offsets. |
| public static final int | WARPDOWN
The struct member offsets. |
| public static final int | WARPLEFT
The struct member offsets. |
| public static final int | WARPRIGHT
The struct member offsets. |
| public static final int | WARPUP
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | OVRTextureLayoutOctilinear(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static OVRTextureLayoutOctilinear | |
| public static OVRTextureLayoutOctilinear. | calloc(int
the buffer capacity capacity)Returns a new |
| public static OVRTextureLayoutOctilinear | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRTextureLayoutOctilinear. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRTextureLayoutOctilinear | |
| public static OVRTextureLayoutOctilinear | |
| public static OVRTextureLayoutOctilinear. | |
| public static OVRTextureLayoutOctilinear. | |
| protected OVRTextureLayoutOctilinear | 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 OVRTextureLayoutOctilinear | |
| public static OVRTextureLayoutOctilinear | create(long address)
Returns a new |
| public static OVRTextureLayoutOctilinear. | create(int
the buffer capacity capacity)Returns a new |
| public static OVRTextureLayoutOctilinear. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static OVRTextureLayoutOctilinear | |
| public static OVRTextureLayoutOctilinear. | |
| public static OVRTextureLayoutOctilinear | |
| public static OVRTextureLayoutOctilinear. | malloc(int
the buffer capacity capacity)Returns a new |
| public static OVRTextureLayoutOctilinear | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRTextureLayoutOctilinear. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRTextureLayoutOctilinear | |
| public static OVRTextureLayoutOctilinear | |
| public static OVRTextureLayoutOctilinear. | |
| public static OVRTextureLayoutOctilinear. | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public OVRTextureLayoutOctilinear | set(float WarpLeft, float WarpRight, float WarpUp, float WarpDown, float SizeLeft, float SizeRight, float SizeUp, float SizeDown)
Initializes this struct with the specified values. |
| public OVRTextureLayoutOctilinear | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public float | |
| public OVRTextureLayoutOctilinear | |
| public float | |
| public OVRTextureLayoutOctilinear | |
| public int | |
| public float | |
| public OVRTextureLayoutOctilinear | |
| public float | |
| public OVRTextureLayoutOctilinear | |
| public float | |
| public OVRTextureLayoutOctilinear | |
| public float | |
| public OVRTextureLayoutOctilinear | |
| public float | |
| public OVRTextureLayoutOctilinear | |
| public float | |
| public OVRTextureLayoutOctilinear |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| SIZEDOWN | back to summary |
|---|---|
| public static final int SIZEDOWN The struct member offsets. | |
| SIZELEFT | back to summary |
|---|---|
| public static final int SIZELEFT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| SIZERIGHT | back to summary |
|---|---|
| public static final int SIZERIGHT The struct member offsets. | |
| SIZEUP | back to summary |
|---|---|
| public static final int SIZEUP The struct member offsets. | |
| WARPDOWN | back to summary |
|---|---|
| public static final int WARPDOWN The struct member offsets. | |
| WARPLEFT | back to summary |
|---|---|
| public static final int WARPLEFT The struct member offsets. | |
| WARPRIGHT | back to summary |
|---|---|
| public static final int WARPRIGHT The struct member offsets. | |
| WARPUP | back to summary |
|---|---|
| public static final int WARPUP The struct member offsets. | |
| OVRTextureLayoutOctilinear | back to summary |
|---|---|
| protected OVRTextureLayoutOctilinear(long address, ByteBuffer container) | |
| OVRTextureLayoutOctilinear | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected OVRTextureLayoutOctilinear create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear create() Returns a new | |
| create | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear. Returns a new
| |
| create | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear. Create a
| |
| createSafe | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear. Like
| |
| malloc | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRTextureLayoutOctilinear. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nSizeDown | back to summary |
|---|---|
| public static float nSizeDown(long struct) Unsafe version of | |
| nSizeDown | back to summary |
|---|---|
| public static void nSizeDown(long struct, float value) Unsafe version of | |
| nSizeLeft | back to summary |
|---|---|
| public static float nSizeLeft(long struct) Unsafe version of | |
| nSizeLeft | back to summary |
|---|---|
| public static void nSizeLeft(long struct, float value) Unsafe version of | |
| nSizeRight | back to summary |
|---|---|
| public static float nSizeRight(long struct) Unsafe version of | |
| nSizeRight | back to summary |
|---|---|
| public static void nSizeRight(long struct, float value) Unsafe version of | |
| nSizeUp | back to summary |
|---|---|
| public static float nSizeUp(long struct) Unsafe version of | |
| nSizeUp | back to summary |
|---|---|
| public static void nSizeUp(long struct, float value) Unsafe version of | |
| nWarpDown | back to summary |
|---|---|
| public static float nWarpDown(long struct) Unsafe version of | |
| nWarpDown | back to summary |
|---|---|
| public static void nWarpDown(long struct, float value) Unsafe version of | |
| nWarpLeft | back to summary |
|---|---|
| public static float nWarpLeft(long struct) Unsafe version of | |
| nWarpLeft | back to summary |
|---|---|
| public static void nWarpLeft(long struct, float value) Unsafe version of | |
| nWarpRight | back to summary |
|---|---|
| public static float nWarpRight(long struct) Unsafe version of | |
| nWarpRight | back to summary |
|---|---|
| public static void nWarpRight(long struct, float value) Unsafe version of | |
| nWarpUp | back to summary |
|---|---|
| public static float nWarpUp(long struct) Unsafe version of | |
| nWarpUp | back to summary |
|---|---|
| public static void nWarpUp(long struct, float value) Unsafe version of | |
| set | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear set(float WarpLeft, float WarpRight, float WarpUp, float WarpDown, float SizeLeft, float SizeRight, float SizeUp, float SizeDown) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear set(OVRTextureLayoutOctilinear src) Copies the specified struct data to this struct.
| |
| SizeDown | back to summary |
|---|---|
| public float SizeDown() down W quadrant size | |
| SizeDown | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear SizeDown(float value) Sets the specified value to the | |
| SizeLeft | back to summary |
|---|---|
| public float SizeLeft() left W quadrant size | |
| SizeLeft | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear SizeLeft(float value) Sets the specified value to the | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| SizeRight | back to summary |
|---|---|
| public float SizeRight() right W quadrant size | |
| SizeRight | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear SizeRight(float value) Sets the specified value to the | |
| SizeUp | back to summary |
|---|---|
| public float SizeUp() up W quadrant size | |
| SizeUp | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear SizeUp(float value) Sets the specified value to the | |
| WarpDown | back to summary |
|---|---|
| public float WarpDown() down W warping | |
| WarpDown | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear WarpDown(float value) Sets the specified value to the | |
| WarpLeft | back to summary |
|---|---|
| public float WarpLeft() left W warping | |
| WarpLeft | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear WarpLeft(float value) Sets the specified value to the | |
| WarpRight | back to summary |
|---|---|
| public float WarpRight() right W warping | |
| WarpRight | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear WarpRight(float value) Sets the specified value to the | |
| WarpUp | back to summary |
|---|---|
| public float WarpUp() up W warping | |
| WarpUp | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear WarpUp(float value) Sets the specified value to the | |
OVRTextureLayoutOctilinear structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final OVRTextureLayoutOctilinear |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected OVRTextureLayoutOctilinear | |
| protected OVRTextureLayoutOctilinear. | |
| public float | |
| public OVRTextureLayoutOctilinear. | |
| public float | |
| public OVRTextureLayoutOctilinear. | |
| public float | |
| public OVRTextureLayoutOctilinear. | |
| public float | |
| public OVRTextureLayoutOctilinear. | |
| public float | |
| public OVRTextureLayoutOctilinear. | |
| public float | |
| public OVRTextureLayoutOctilinear. | |
| public float | |
| public OVRTextureLayoutOctilinear. | |
| public float | |
| public OVRTextureLayoutOctilinear. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final OVRTextureLayoutOctilinear 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 OVRTextureLayoutOctilinear getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected OVRTextureLayoutOctilinear. Implements abstract org.
| |
| SizeDown | back to summary |
|---|---|
public float SizeDown()
| |
| SizeDown | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear. Sets the specified value to the | |
| SizeLeft | back to summary |
|---|---|
public float SizeLeft()
| |
| SizeLeft | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear. Sets the specified value to the | |
| SizeRight | back to summary |
|---|---|
public float SizeRight()
| |
| SizeRight | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear. Sets the specified value to the | |
| SizeUp | back to summary |
|---|---|
public float SizeUp()
| |
| SizeUp | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear. Sets the specified value to the | |
| WarpDown | back to summary |
|---|---|
public float WarpDown()
| |
| WarpDown | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear. Sets the specified value to the | |
| WarpLeft | back to summary |
|---|---|
public float WarpLeft()
| |
| WarpLeft | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear. Sets the specified value to the | |
| WarpRight | back to summary |
|---|---|
public float WarpRight()
| |
| WarpRight | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear. Sets the specified value to the | |
| WarpUp | back to summary |
|---|---|
public float WarpUp()
| |
| WarpUp | back to summary |
|---|---|
| public OVRTextureLayoutOctilinear. Sets the specified value to the | |