LayerType_Cube which is a single timewarped cubemap at infinity. When looking down the recentered origin's -Z axis, +X face
is left and +Y face is up. Similarly, if headlocked the +X face is left, +Y face is up and -Z face is forward. Note that the coordinate system is
left-handed.
LayerFlag_TextureOriginAtBottomLeft flag is not supported by ovrLayerCube.
struct ovrLayerCube {
ovrLayerHeader Header;
ovrQuatf Orientation;
ovrTextureSwapChain CubeMapTexture;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | OVRLayerCube.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CUBEMAPTEXTURE
The struct member offsets. |
| public static final int | HEADER
The struct member offsets. |
| public static final int | ORIENTATION
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | OVRLayerCube(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static OVRLayerCube | |
| public static OVRLayerCube. | calloc(int
the buffer capacity capacity)Returns a new |
| public static OVRLayerCube | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRLayerCube. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRLayerCube | |
| public static OVRLayerCube | |
| public static OVRLayerCube. | |
| public static OVRLayerCube. | |
| protected OVRLayerCube | 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 OVRLayerCube | |
| public static OVRLayerCube | |
| public static OVRLayerCube. | create(int
the buffer capacity capacity)Returns a new |
| public static OVRLayerCube. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static OVRLayerCube | |
| public static OVRLayerCube. | |
| public long | |
| public OVRLayerCube | |
| public OVRLayerHeader | |
| public OVRLayerCube | |
| public OVRLayerCube | |
| public static OVRLayerCube | |
| public static OVRLayerCube. | malloc(int
the buffer capacity capacity)Returns a new |
| public static OVRLayerCube | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRLayerCube. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRLayerCube | |
| public static OVRLayerCube | |
| public static OVRLayerCube. | |
| public static OVRLayerCube. | |
| public static long | |
| public static void | |
| public static OVRLayerHeader | |
| public static void | |
| public static OVRQuatf | |
| public static void | |
| public OVRQuatf | |
| public OVRLayerCube | |
| public OVRLayerCube | |
| public OVRLayerCube | set(OVRLayerHeader Header, OVRQuatf Orientation, long CubeMapTexture)
Initializes this struct with the specified values. |
| public OVRLayerCube | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CUBEMAPTEXTURE | back to summary |
|---|---|
| public static final int CUBEMAPTEXTURE The struct member offsets. | |
| HEADER | back to summary |
|---|---|
| public static final int HEADER The struct member offsets. | |
| ORIENTATION | back to summary |
|---|---|
| public static final int ORIENTATION The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| OVRLayerCube | back to summary |
|---|---|
| protected OVRLayerCube(long address, ByteBuffer container) | |
| OVRLayerCube | back to summary |
|---|---|
| public OVRLayerCube(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static OVRLayerCube calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static OVRLayerCube. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OVRLayerCube calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OVRLayerCube. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static OVRLayerCube callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRLayerCube callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRLayerCube. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRLayerCube. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected OVRLayerCube create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static OVRLayerCube create() Returns a new | |
| create | back to summary |
|---|---|
| public static OVRLayerCube create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static OVRLayerCube. Returns a new
| |
| create | back to summary |
|---|---|
| public static OVRLayerCube. Create a
| |
| createSafe | back to summary |
|---|---|
| public static OVRLayerCube createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static OVRLayerCube. Like
| |
| CubeMapTexture | back to summary |
|---|---|
| public long CubeMapTexture() contains a single cubemap swapchain (not a stereo pair of swapchains)
| |
| CubeMapTexture | back to summary |
|---|---|
| public OVRLayerCube CubeMapTexture(long value) Sets the specified value to the | |
| Header | back to summary |
|---|---|
| public OVRLayerHeader Header()
| |
| Header | back to summary |
|---|---|
| public OVRLayerCube Header(OVRLayerHeader value) Copies the specified | |
| Header | back to summary |
|---|---|
| public OVRLayerCube Header(Consumer<OVRLayerHeader> consumer) | |
| malloc | back to summary |
|---|---|
| public static OVRLayerCube malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static OVRLayerCube. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OVRLayerCube malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OVRLayerCube. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static OVRLayerCube mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRLayerCube mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRLayerCube. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRLayerCube. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nCubeMapTexture | back to summary |
|---|---|
| public static long nCubeMapTexture(long struct) Unsafe version of | |
| nCubeMapTexture | back to summary |
|---|---|
| public static void nCubeMapTexture(long struct, long value) Unsafe version of | |
| nHeader | back to summary |
|---|---|
| public static OVRLayerHeader nHeader(long struct) Unsafe version of | |
| nHeader | back to summary |
|---|---|
| public static void nHeader(long struct, OVRLayerHeader value) Unsafe version of | |
| nOrientation | back to summary |
|---|---|
| public static OVRQuatf nOrientation(long struct) Unsafe version of | |
| nOrientation | back to summary |
|---|---|
| public static void nOrientation(long struct, OVRQuatf value) Unsafe version of | |
| Orientation | back to summary |
|---|---|
| public OVRQuatf Orientation() orientation of the cube
| |
| Orientation | back to summary |
|---|---|
| public OVRLayerCube Orientation(OVRQuatf value) Copies the specified | |
| Orientation | back to summary |
|---|---|
| public OVRLayerCube Orientation(Consumer<OVRQuatf> consumer) Passes the | |
| set | back to summary |
|---|---|
| public OVRLayerCube set(OVRLayerHeader Header, OVRQuatf Orientation, long CubeMapTexture) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public OVRLayerCube set(OVRLayerCube src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
OVRLayerCube structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final OVRLayerCube |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public OVRLayerCube. | |
| protected OVRLayerCube | |
| public OVRLayerHeader | |
| public OVRLayerCube. | |
| public OVRLayerCube. | Header(Consumer<OVRLayerHeader> consumer)
Passes the |
| public OVRQuatf | |
| public OVRLayerCube. | |
| public OVRLayerCube. | Orientation(Consumer<OVRQuatf> consumer)
Passes the |
| protected OVRLayerCube. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final OVRLayerCube 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) | |
| CubeMapTexture | back to summary |
|---|---|
public long CubeMapTexture()
| |
| CubeMapTexture | back to summary |
|---|---|
| public OVRLayerCube. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected OVRLayerCube getElementFactory() Implements abstract org.
| |
| Header | back to summary |
|---|---|
public OVRLayerHeader Header()
| |
| Header | back to summary |
|---|---|
| public OVRLayerCube. Copies the specified | |
| Header | back to summary |
|---|---|
| public OVRLayerCube. Passes the | |
| Orientation | back to summary |
|---|---|
public OVRQuatf Orientation()
| |
| Orientation | back to summary |
|---|---|
| public OVRLayerCube. Copies the specified | |
| Orientation | back to summary |
|---|---|
| public OVRLayerCube. Passes the | |
| self | back to summary |
|---|---|
| protected OVRLayerCube. Implements abstract org.
| |