LayerType_Quad. This type of layer
represents a single object placed in the world and not a stereo view of the world itself.
A typical use of LayerType_Quad is to draw a television screen in a room that for some reason is more convenient to draw as a layer than
as part of the main view in layer 0. For example, it could implement a 3D popup GUI that is drawn at a higher resolution than layer 0 to improve
fidelity of the GUI.
Quad layers are visible from both sides; they are not back-face culled.
struct ovrLayerQuad {
ovrLayerHeader Header;
ovrTextureSwapChain ColorTexture;
ovrRecti Viewport;
ovrPosef QuadPoseCenter;
ovrVector2f QuadSize;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | OVRLayerQuad.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | COLORTEXTURE
The struct member offsets. |
| public static final int | HEADER
The struct member offsets. |
| public static final int | QUADPOSECENTER
The struct member offsets. |
| public static final int | QUADSIZE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | VIEWPORT
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | OVRLayerQuad(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static OVRLayerQuad | |
| public static OVRLayerQuad. | calloc(int
the buffer capacity capacity)Returns a new |
| public static OVRLayerQuad | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRLayerQuad. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRLayerQuad | |
| public static OVRLayerQuad | |
| public static OVRLayerQuad. | |
| public static OVRLayerQuad. | |
| public long | |
| public OVRLayerQuad | |
| protected OVRLayerQuad | 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 OVRLayerQuad | |
| public static OVRLayerQuad | |
| public static OVRLayerQuad. | create(int
the buffer capacity capacity)Returns a new |
| public static OVRLayerQuad. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static OVRLayerQuad | |
| public static OVRLayerQuad. | |
| public OVRLayerHeader | |
| public OVRLayerQuad | |
| public OVRLayerQuad | |
| public static OVRLayerQuad | |
| public static OVRLayerQuad. | malloc(int
the buffer capacity capacity)Returns a new |
| public static OVRLayerQuad | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRLayerQuad. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRLayerQuad | |
| public static OVRLayerQuad | |
| public static OVRLayerQuad. | |
| public static OVRLayerQuad. | |
| public static long | |
| public static void | |
| public static OVRLayerHeader | |
| public static void | |
| public static OVRPosef | |
| public static void | |
| public static OVRVector2f | |
| public static void | |
| public static OVRRecti | |
| public static void | |
| public OVRPosef | |
| public OVRLayerQuad | |
| public OVRLayerQuad | QuadPoseCenter(Consumer<OVRPosef> consumer)
Passes the |
| public OVRVector2f | |
| public OVRLayerQuad | |
| public OVRLayerQuad | |
| public OVRLayerQuad | set(OVRLayerHeader Header, long ColorTexture, OVRRecti Viewport, OVRPosef QuadPoseCenter, OVRVector2f QuadSize)
Initializes this struct with the specified values. |
| public OVRLayerQuad | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public static void | |
| public OVRRecti | |
| public OVRLayerQuad | |
| public OVRLayerQuad |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| COLORTEXTURE | back to summary |
|---|---|
| public static final int COLORTEXTURE The struct member offsets. | |
| HEADER | back to summary |
|---|---|
| public static final int HEADER The struct member offsets. | |
| QUADPOSECENTER | back to summary |
|---|---|
| public static final int QUADPOSECENTER The struct member offsets. | |
| QUADSIZE | back to summary |
|---|---|
| public static final int QUADSIZE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VIEWPORT | back to summary |
|---|---|
| public static final int VIEWPORT The struct member offsets. | |
| OVRLayerQuad | back to summary |
|---|---|
| protected OVRLayerQuad(long address, ByteBuffer container) | |
| OVRLayerQuad | back to summary |
|---|---|
| public OVRLayerQuad(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static OVRLayerQuad calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static OVRLayerQuad. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OVRLayerQuad calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OVRLayerQuad. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static OVRLayerQuad callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRLayerQuad callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRLayerQuad. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRLayerQuad. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| ColorTexture | back to summary |
|---|---|
| public long ColorTexture() contains a single image, never with any stereo view
| |
| ColorTexture | back to summary |
|---|---|
| public OVRLayerQuad ColorTexture(long value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected OVRLayerQuad create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static OVRLayerQuad create() Returns a new | |
| create | back to summary |
|---|---|
| public static OVRLayerQuad create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static OVRLayerQuad. Returns a new
| |
| create | back to summary |
|---|---|
| public static OVRLayerQuad. Create a
| |
| createSafe | back to summary |
|---|---|
| public static OVRLayerQuad createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static OVRLayerQuad. Like
| |
| Header | back to summary |
|---|---|
| public OVRLayerHeader Header()
| |
| Header | back to summary |
|---|---|
| public OVRLayerQuad Header(OVRLayerHeader value) Copies the specified | |
| Header | back to summary |
|---|---|
| public OVRLayerQuad Header(Consumer<OVRLayerHeader> consumer) | |
| malloc | back to summary |
|---|---|
| public static OVRLayerQuad malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static OVRLayerQuad. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OVRLayerQuad malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OVRLayerQuad. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static OVRLayerQuad mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRLayerQuad mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRLayerQuad. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRLayerQuad. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nColorTexture | back to summary |
|---|---|
| public static long nColorTexture(long struct) Unsafe version of | |
| nColorTexture | back to summary |
|---|---|
| public static void nColorTexture(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 | |
| nQuadPoseCenter | back to summary |
|---|---|
| public static OVRPosef nQuadPoseCenter(long struct) Unsafe version of | |
| nQuadPoseCenter | back to summary |
|---|---|
| public static void nQuadPoseCenter(long struct, OVRPosef value) Unsafe version of | |
| nQuadSize | back to summary |
|---|---|
| public static OVRVector2f nQuadSize(long struct) Unsafe version of | |
| nQuadSize | back to summary |
|---|---|
| public static void nQuadSize(long struct, OVRVector2f value) Unsafe version of | |
| nViewport | back to summary |
|---|---|
| public static OVRRecti nViewport(long struct) Unsafe version of | |
| nViewport | back to summary |
|---|---|
| public static void nViewport(long struct, OVRRecti value) Unsafe version of | |
| QuadPoseCenter | back to summary |
|---|---|
| public OVRPosef QuadPoseCenter() specifies the orientation and position of the center point of a Quad layer type. The supplied direction is the vector perpendicular to the quad. The position is in real-world meters (not the application's virtual world, the physical
world the user is in) and is relative to the "zero" position set by
| |
| QuadPoseCenter | back to summary |
|---|---|
| public OVRLayerQuad QuadPoseCenter(OVRPosef value) Copies the specified | |
| QuadPoseCenter | back to summary |
|---|---|
| public OVRLayerQuad QuadPoseCenter(Consumer<OVRPosef> consumer) Passes the | |
| QuadSize | back to summary |
|---|---|
| public OVRVector2f QuadSize() width and height (respectively) of the quad in meters
| |
| QuadSize | back to summary |
|---|---|
| public OVRLayerQuad QuadSize(OVRVector2f value) Copies the specified | |
| QuadSize | back to summary |
|---|---|
| public OVRLayerQuad QuadSize(Consumer<OVRVector2f> consumer) | |
| set | back to summary |
|---|---|
| public OVRLayerQuad set(OVRLayerHeader Header, long ColorTexture, OVRRecti Viewport, OVRPosef QuadPoseCenter, OVRVector2f QuadSize) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public OVRLayerQuad set(OVRLayerQuad 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
| |
| Viewport | back to summary |
|---|---|
| public OVRRecti Viewport() specifies the ColorTexture sub-rect UV coordinates
| |
| Viewport | back to summary |
|---|---|
| public OVRLayerQuad Viewport(OVRRecti value) | |
| Viewport | back to summary |
|---|---|
| public OVRLayerQuad Viewport(Consumer<OVRRecti> consumer) | |
OVRLayerQuad structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final OVRLayerQuad |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public OVRLayerQuad. | |
| protected OVRLayerQuad | |
| public OVRLayerHeader | |
| public OVRLayerQuad. | |
| public OVRLayerQuad. | Header(Consumer<OVRLayerHeader> consumer)
Passes the |
| public OVRPosef | |
| public OVRLayerQuad. | QuadPoseCenter(OVRPosef value)
Copies the specified |
| public OVRLayerQuad. | QuadPoseCenter(Consumer<OVRPosef> consumer)
Passes the |
| public OVRVector2f | |
| public OVRLayerQuad. | |
| public OVRLayerQuad. | QuadSize(Consumer<OVRVector2f> consumer)
Passes the |
| protected OVRLayerQuad. | |
| public OVRRecti | |
| public OVRLayerQuad. | |
| public OVRLayerQuad. | Viewport(Consumer<OVRRecti> consumer)
Passes the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final OVRLayerQuad 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) | |
| ColorTexture | back to summary |
|---|---|
public long ColorTexture()
| |
| ColorTexture | back to summary |
|---|---|
| public OVRLayerQuad. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected OVRLayerQuad getElementFactory() Implements abstract org.
| |
| Header | back to summary |
|---|---|
public OVRLayerHeader Header()
| |
| Header | back to summary |
|---|---|
| public OVRLayerQuad. Copies the specified | |
| Header | back to summary |
|---|---|
| public OVRLayerQuad. Passes the | |
| QuadPoseCenter | back to summary |
|---|---|
public OVRPosef QuadPoseCenter()
| |
| QuadPoseCenter | back to summary |
|---|---|
| public OVRLayerQuad. Copies the specified | |
| QuadPoseCenter | back to summary |
|---|---|
| public OVRLayerQuad. Passes the | |
| QuadSize | back to summary |
|---|---|
public OVRVector2f QuadSize()
| |
| QuadSize | back to summary |
|---|---|
| public OVRLayerQuad. Copies the specified | |
| QuadSize | back to summary |
|---|---|
| public OVRLayerQuad. Passes the | |
| self | back to summary |
|---|---|
| protected OVRLayerQuad. Implements abstract org.
| |
| Viewport | back to summary |
|---|---|
public OVRRecti Viewport()
| |
| Viewport | back to summary |
|---|---|
| public OVRLayerQuad. Copies the specified | |
| Viewport | back to summary |
|---|---|
| public OVRLayerQuad. Passes the | |