LayerType_Cylinder which is a single cylinder relative to the recentered origin. This type of layer represents a single
object placed in the world and not a stereo view of the world itself.
-Z +Y
U=0 +--+--+ U=1
+---+ | +---+ +-----------------+ - V=0
+--+ \ | / +--+ | | |
+-+ \ / +-+ | | |
++ \ A / ++ | | |
++ \---/ ++ | | |
| \ / | | +X | |
+-------------C------R------+ +X +--------C--------+ | <--- Height
(+Y is out of screen) | | |
| | |
R = Radius | | |
A = Angle (0,2*Pi) | | |
C = CylinderPoseCenter | | |
U/V = UV Coordinates +-----------------+ - V=1
An identity CylinderPoseCenter places the center of the cylinder at the recentered origin unless the headlocked flag is set.
Does not utilize HmdSpaceToWorldScaleInMeters. If necessary, adjust translation and radius.
Only the interior surface of the cylinder is visible. Use cylinder layers when the user cannot leave the extents of the cylinder. Artifacts may appear
when viewing the cylinder's exterior surface. Additionally, while the interface supports an Angle that ranges from [0,2*Pi] the angle should
remain less than 1.9*PI to avoid artifacts where the cylinder edges converge.
struct ovrLayerCylinder {
ovrLayerHeader Header;
ovrTextureSwapChain ColorTexture;
ovrRecti Viewport;
ovrPosef CylinderPoseCenter;
float CylinderRadius;
float CylinderAngle;
float CylinderAspectRatio;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | OVRLayerCylinder.
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 | CYLINDERANGLE
The struct member offsets. |
| public static final int | CYLINDERASPECTRATIO
The struct member offsets. |
| public static final int | CYLINDERPOSECENTER
The struct member offsets. |
| public static final int | CYLINDERRADIUS
The struct member offsets. |
| public static final int | HEADER
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 | OVRLayerCylinder(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static OVRLayerCylinder | |
| public static OVRLayerCylinder. | calloc(int
the buffer capacity capacity)Returns a new |
| public static OVRLayerCylinder | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRLayerCylinder. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRLayerCylinder | |
| public static OVRLayerCylinder | |
| public static OVRLayerCylinder. | |
| public static OVRLayerCylinder. | |
| public long | |
| public OVRLayerCylinder | |
| protected OVRLayerCylinder | 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 OVRLayerCylinder | |
| public static OVRLayerCylinder | |
| public static OVRLayerCylinder. | create(int
the buffer capacity capacity)Returns a new |
| public static OVRLayerCylinder. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static OVRLayerCylinder | |
| public static OVRLayerCylinder. | |
| public float | |
| public OVRLayerCylinder | |
| public float | |
| public OVRLayerCylinder | |
| public OVRPosef | CylinderPoseCenter()
specifies the orientation and position of the center point of a cylinder layer type. |
| public OVRLayerCylinder | |
| public OVRLayerCylinder | CylinderPoseCenter(Consumer<OVRPosef> consumer)
Passes the |
| public float | |
| public OVRLayerCylinder | |
| public OVRLayerHeader | |
| public OVRLayerCylinder | |
| public OVRLayerCylinder | |
| public static OVRLayerCylinder | |
| public static OVRLayerCylinder. | malloc(int
the buffer capacity capacity)Returns a new |
| public static OVRLayerCylinder | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRLayerCylinder. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRLayerCylinder | |
| public static OVRLayerCylinder | |
| public static OVRLayerCylinder. | |
| public static OVRLayerCylinder. | |
| public static long | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static OVRPosef | |
| public static void | |
| public static float | |
| public static void | |
| public static OVRLayerHeader | |
| public static void | |
| public static OVRRecti | |
| public static void | |
| public OVRLayerCylinder | set(OVRLayerHeader Header, long ColorTexture, OVRRecti Viewport, OVRPosef CylinderPoseCenter, float CylinderRadius, float CylinderAngle, float CylinderAspectRatio)
Initializes this struct with the specified values. |
| public OVRLayerCylinder | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public static void | |
| public OVRRecti | |
| public OVRLayerCylinder | |
| public OVRLayerCylinder |
| 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. | |
| CYLINDERANGLE | back to summary |
|---|---|
| public static final int CYLINDERANGLE The struct member offsets. | |
| CYLINDERASPECTRATIO | back to summary |
|---|---|
| public static final int CYLINDERASPECTRATIO The struct member offsets. | |
| CYLINDERPOSECENTER | back to summary |
|---|---|
| public static final int CYLINDERPOSECENTER The struct member offsets. | |
| CYLINDERRADIUS | back to summary |
|---|---|
| public static final int CYLINDERRADIUS The struct member offsets. | |
| HEADER | back to summary |
|---|---|
| public static final int HEADER 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. | |
| OVRLayerCylinder | back to summary |
|---|---|
| protected OVRLayerCylinder(long address, ByteBuffer container) | |
| OVRLayerCylinder | back to summary |
|---|---|
| public OVRLayerCylinder(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static OVRLayerCylinder calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static OVRLayerCylinder. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OVRLayerCylinder calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OVRLayerCylinder. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static OVRLayerCylinder callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRLayerCylinder callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRLayerCylinder. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRLayerCylinder. 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 OVRLayerCylinder ColorTexture(long value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected OVRLayerCylinder create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static OVRLayerCylinder create() Returns a new | |
| create | back to summary |
|---|---|
| public static OVRLayerCylinder create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static OVRLayerCylinder. Returns a new
| |
| create | back to summary |
|---|---|
| public static OVRLayerCylinder. Create a
| |
| createSafe | back to summary |
|---|---|
| public static OVRLayerCylinder createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static OVRLayerCylinder. Like
| |
| CylinderAngle | back to summary |
|---|---|
| public float CylinderAngle() angle in radians. Range is from 0 to | |
| CylinderAngle | back to summary |
|---|---|
| public OVRLayerCylinder CylinderAngle(float value) Sets the specified value to the | |
| CylinderAspectRatio | back to summary |
|---|---|
| public float CylinderAspectRatio() custom aspect ratio presumably set based on | |
| CylinderAspectRatio | back to summary |
|---|---|
| public OVRLayerCylinder CylinderAspectRatio(float value) Sets the specified value to the | |
| CylinderPoseCenter | back to summary |
|---|---|
| public OVRPosef CylinderPoseCenter() specifies the orientation and position of the center point of a cylinder layer type. The position is in real-world meters not the application's virtual
world, but the physical world the user is in. It is relative to the "zero" position set by
| |
| CylinderPoseCenter | back to summary |
|---|---|
| public OVRLayerCylinder CylinderPoseCenter(OVRPosef value) Copies the specified | |
| CylinderPoseCenter | back to summary |
|---|---|
| public OVRLayerCylinder CylinderPoseCenter(Consumer<OVRPosef> consumer) Passes the | |
| CylinderRadius | back to summary |
|---|---|
| public float CylinderRadius() radius of the cylinder in meters | |
| CylinderRadius | back to summary |
|---|---|
| public OVRLayerCylinder CylinderRadius(float value) Sets the specified value to the | |
| Header | back to summary |
|---|---|
| public OVRLayerHeader Header()
| |
| Header | back to summary |
|---|---|
| public OVRLayerCylinder Header(OVRLayerHeader value) Copies the specified | |
| Header | back to summary |
|---|---|
| public OVRLayerCylinder Header(Consumer<OVRLayerHeader> consumer) | |
| malloc | back to summary |
|---|---|
| public static OVRLayerCylinder malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static OVRLayerCylinder. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OVRLayerCylinder malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OVRLayerCylinder. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static OVRLayerCylinder mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRLayerCylinder mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRLayerCylinder. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRLayerCylinder. 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 | |
| nCylinderAngle | back to summary |
|---|---|
| public static float nCylinderAngle(long struct) Unsafe version of | |
| nCylinderAngle | back to summary |
|---|---|
| public static void nCylinderAngle(long struct, float value) Unsafe version of | |
| nCylinderAspectRatio | back to summary |
|---|---|
| public static float nCylinderAspectRatio(long struct) Unsafe version of | |
| nCylinderAspectRatio | back to summary |
|---|---|
| public static void nCylinderAspectRatio(long struct, float value) Unsafe version of | |
| nCylinderPoseCenter | back to summary |
|---|---|
| public static OVRPosef nCylinderPoseCenter(long struct) Unsafe version of | |
| nCylinderPoseCenter | back to summary |
|---|---|
| public static void nCylinderPoseCenter(long struct, OVRPosef value) Unsafe version of | |
| nCylinderRadius | back to summary |
|---|---|
| public static float nCylinderRadius(long struct) Unsafe version of | |
| nCylinderRadius | back to summary |
|---|---|
| public static void nCylinderRadius(long struct, float 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 | |
| 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 | |
| set | back to summary |
|---|---|
| public OVRLayerCylinder set(OVRLayerHeader Header, long ColorTexture, OVRRecti Viewport, OVRPosef CylinderPoseCenter, float CylinderRadius, float CylinderAngle, float CylinderAspectRatio) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public OVRLayerCylinder set(OVRLayerCylinder 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 OVRLayerCylinder Viewport(OVRRecti value) | |
| Viewport | back to summary |
|---|---|
| public OVRLayerCylinder Viewport(Consumer<OVRRecti> consumer) | |
OVRLayerCylinder structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final OVRLayerCylinder |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final OVRLayerCylinder 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 OVRLayerCylinder. Sets the specified value to the | |
| CylinderAngle | back to summary |
|---|---|
public float CylinderAngle()
| |
| CylinderAngle | back to summary |
|---|---|
| public OVRLayerCylinder. Sets the specified value to the | |
| CylinderAspectRatio | back to summary |
|---|---|
public float CylinderAspectRatio()
| |
| CylinderAspectRatio | back to summary |
|---|---|
| public OVRLayerCylinder. Sets the specified value to the | |
| CylinderPoseCenter | back to summary |
|---|---|
public OVRPosef CylinderPoseCenter()
| |
| CylinderPoseCenter | back to summary |
|---|---|
| public OVRLayerCylinder. Copies the specified | |
| CylinderPoseCenter | back to summary |
|---|---|
| public OVRLayerCylinder. Passes the | |
| CylinderRadius | back to summary |
|---|---|
public float CylinderRadius()
| |
| CylinderRadius | back to summary |
|---|---|
| public OVRLayerCylinder. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected OVRLayerCylinder getElementFactory() Implements abstract org.
| |
| Header | back to summary |
|---|---|
public OVRLayerHeader Header()
| |
| Header | back to summary |
|---|---|
| public OVRLayerCylinder. Copies the specified | |
| Header | back to summary |
|---|---|
| public OVRLayerCylinder. Passes the | |
| self | back to summary |
|---|---|
| protected OVRLayerCylinder. Implements abstract org.
| |
| Viewport | back to summary |
|---|---|
public OVRRecti Viewport()
| |
| Viewport | back to summary |
|---|---|
| public OVRLayerCylinder. Copies the specified | |
| Viewport | back to summary |
|---|---|
| public OVRLayerCylinder. Passes the | |