Top Description Inners Fields Constructors Methods
org.lwjgl.ovr

public Class OVRLayerCylinder

extends Struct<OVRLayerCylinder>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct ovrLayerCylinder
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Describes a layer of type 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.

Note

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.

Layout


struct ovrLayerCylinder {
    ovrLayerHeader Header;
    ovrTextureSwapChain ColorTexture;
    ovrRecti Viewport;
    ovrPosef CylinderPoseCenter;
    float CylinderRadius;
    float CylinderAngle;
    float CylinderAspectRatio;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField 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.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
OVRLayerCylinder(long address, ByteBuffer container)

public
OVRLayerCylinder(ByteBuffer container)

Creates a OVRLayerCylinder instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static OVRLayerCylinder
calloc()

Returns a new OVRLayerCylinder instance allocated with memCalloc.

public static OVRLayerCylinder.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new OVRLayerCylinder.Buffer instance allocated with memCalloc.

public static OVRLayerCylinder
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRLayerCylinder instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static OVRLayerCylinder.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRLayerCylinder.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static OVRLayerCylinder
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static OVRLayerCylinder
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRLayerCylinder.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRLayerCylinder.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public long
ColorTexture()

contains a single image, never with any stereo view

public OVRLayerCylinder
ColorTexture(long value)

Sets the specified value to the ColorTexture field.

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.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static OVRLayerCylinder
create()

Returns a new OVRLayerCylinder instance allocated with BufferUtils.

public static OVRLayerCylinder
create(long address)

Returns a new OVRLayerCylinder instance for the specified memory address.

public static OVRLayerCylinder.Buffer
create(int
the buffer capacity
capacity
)

Returns a new OVRLayerCylinder.Buffer instance allocated with BufferUtils.

public static OVRLayerCylinder.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a OVRLayerCylinder.Buffer instance at the specified memory.

public static OVRLayerCylinder
createSafe(long address)

Like create, but returns null if address is NULL.

public static OVRLayerCylinder.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public float
CylinderAngle()

angle in radians.

public OVRLayerCylinder
CylinderAngle(float value)

Sets the specified value to the CylinderAngle field.

public float
CylinderAspectRatio()

custom aspect ratio presumably set based on Viewport.

public OVRLayerCylinder
CylinderAspectRatio(float value)

Sets the specified value to the CylinderAspectRatio field.

public OVRPosef
CylinderPoseCenter()

specifies the orientation and position of the center point of a cylinder layer type.

public OVRLayerCylinder
CylinderPoseCenter(OVRPosef value)

Copies the specified OVRPosef to the CylinderPoseCenter field.

public OVRLayerCylinder
CylinderPoseCenter(Consumer<OVRPosef> consumer)

Passes the CylinderPoseCenter field to the specified Consumer.

public float
CylinderRadius()

radius of the cylinder in meters

public OVRLayerCylinder
CylinderRadius(float value)

Sets the specified value to the CylinderRadius field.

public OVRLayerHeader
Header()

Header.Type must be LayerType_Cylinder

public OVRLayerCylinder
Header(OVRLayerHeader value)

Copies the specified OVRLayerHeader to the Header field.

public OVRLayerCylinder
Header(Consumer<OVRLayerHeader> consumer)

Passes the Header field to the specified Consumer.

public static OVRLayerCylinder
malloc()

Returns a new OVRLayerCylinder instance allocated with memAlloc.

public static OVRLayerCylinder.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new OVRLayerCylinder.Buffer instance allocated with memAlloc.

public static OVRLayerCylinder
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRLayerCylinder instance allocated on the specified MemoryStack.

public static OVRLayerCylinder.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRLayerCylinder.Buffer instance allocated on the specified MemoryStack.

public static OVRLayerCylinder
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static OVRLayerCylinder
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRLayerCylinder.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRLayerCylinder.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static long
nColorTexture(long struct)

Unsafe version of ColorTexture.

public static void
nColorTexture(long struct, long value)

Unsafe version of ColorTexture.

public static float
nCylinderAngle(long struct)

Unsafe version of CylinderAngle.

public static void
nCylinderAngle(long struct, float value)

Unsafe version of CylinderAngle.

public static float
nCylinderAspectRatio(long struct)

Unsafe version of CylinderAspectRatio.

public static void
nCylinderAspectRatio(long struct, float value)

Unsafe version of CylinderAspectRatio.

public static OVRPosef
nCylinderPoseCenter(long struct)

Unsafe version of CylinderPoseCenter.

public static void
nCylinderPoseCenter(long struct, OVRPosef value)

Unsafe version of CylinderPoseCenter.

public static float
nCylinderRadius(long struct)

Unsafe version of CylinderRadius.

public static void
nCylinderRadius(long struct, float value)

Unsafe version of CylinderRadius.

public static OVRLayerHeader
nHeader(long struct)

Unsafe version of Header.

public static void
nHeader(long struct, OVRLayerHeader value)

Unsafe version of Header.

public static OVRRecti
nViewport(long struct)

Unsafe version of Viewport.

public static void
nViewport(long struct, OVRRecti value)

Unsafe version of Viewport.

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 struct
set
(OVRLayerCylinder
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

public OVRRecti
Viewport()

specifies the ColorTexture sub-rect UV coordinates

public OVRLayerCylinder
Viewport(OVRRecti value)

Copies the specified OVRRecti to the Viewport field.

public OVRLayerCylinder
Viewport(Consumer<OVRRecti> consumer)

Passes the Viewport field to the specified Consumer.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

COLORTEXTUREback to summary
public static final int COLORTEXTURE

The struct member offsets.

CYLINDERANGLEback to summary
public static final int CYLINDERANGLE

The struct member offsets.

CYLINDERASPECTRATIOback to summary
public static final int CYLINDERASPECTRATIO

The struct member offsets.

CYLINDERPOSECENTERback to summary
public static final int CYLINDERPOSECENTER

The struct member offsets.

CYLINDERRADIUSback to summary
public static final int CYLINDERRADIUS

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

VIEWPORTback to summary
public static final int VIEWPORT

The struct member offsets.

Constructor Detail

OVRLayerCylinderback to summary
protected OVRLayerCylinder(long address, ByteBuffer container)
OVRLayerCylinderback to summary
public OVRLayerCylinder(ByteBuffer container)

Creates a OVRLayerCylinder instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

The created instance holds a strong reference to the container object.

Method Detail

callocback to summary
public static OVRLayerCylinder calloc()

Returns a new OVRLayerCylinder instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static OVRLayerCylinder.Buffer calloc(int capacity)

Returns a new OVRLayerCylinder.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static OVRLayerCylinder calloc(MemoryStack stack)

Returns a new OVRLayerCylinder instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static OVRLayerCylinder.Buffer calloc(int capacity, MemoryStack stack)

Returns a new OVRLayerCylinder.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

callocStackback to summary
public static OVRLayerCylinder callocStack()

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static OVRLayerCylinder callocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static OVRLayerCylinder.Buffer callocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static OVRLayerCylinder.Buffer callocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
ColorTextureback to summary
public long ColorTexture()

contains a single image, never with any stereo view

Annotations
@NativeType:ovrTextureSwapChain
ColorTextureback to summary
public OVRLayerCylinder ColorTexture(long value)

Sets the specified value to the ColorTexture field.

createback to summary
protected OVRLayerCylinder create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static OVRLayerCylinder create()

Returns a new OVRLayerCylinder instance allocated with BufferUtils.

createback to summary
public static OVRLayerCylinder create(long address)

Returns a new OVRLayerCylinder instance for the specified memory address.

createback to summary
public static OVRLayerCylinder.Buffer create(int capacity)

Returns a new OVRLayerCylinder.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static OVRLayerCylinder.Buffer create(long address, int capacity)

Create a OVRLayerCylinder.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static OVRLayerCylinder createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static OVRLayerCylinder.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
CylinderAngleback to summary
public float CylinderAngle()

angle in radians. Range is from 0 to 2*Pi exclusive covering the entire cylinder (see diagram and note above).

CylinderAngleback to summary
public OVRLayerCylinder CylinderAngle(float value)

Sets the specified value to the CylinderAngle field.

CylinderAspectRatioback to summary
public float CylinderAspectRatio()

custom aspect ratio presumably set based on Viewport. Used to calculate the height of the cylinder based on the arc-length (CylinderAngle) and radius (CylinderRadius) given above. The height of the cylinder is given by: height = (CylinderRadius * CylinderAngle) / CylinderAspectRatio. Aspect ratio is width / height.

CylinderAspectRatioback to summary
public OVRLayerCylinder CylinderAspectRatio(float value)

Sets the specified value to the CylinderAspectRatio field.

CylinderPoseCenterback 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 RecenterTrackingOrigin unless the LayerFlag_HeadLocked flag is used.

Annotations
@NativeType:ovrPosef
CylinderPoseCenterback to summary
public OVRLayerCylinder CylinderPoseCenter(OVRPosef value)

Copies the specified OVRPosef to the CylinderPoseCenter field.

CylinderPoseCenterback to summary
public OVRLayerCylinder CylinderPoseCenter(Consumer<OVRPosef> consumer)

Passes the CylinderPoseCenter field to the specified Consumer.

CylinderRadiusback to summary
public float CylinderRadius()

radius of the cylinder in meters

CylinderRadiusback to summary
public OVRLayerCylinder CylinderRadius(float value)

Sets the specified value to the CylinderRadius field.

Headerback to summary
public OVRLayerHeader Header()

Header.Type must be LayerType_Cylinder

Annotations
@NativeType:ovrLayerHeader
Headerback to summary
public OVRLayerCylinder Header(OVRLayerHeader value)

Copies the specified OVRLayerHeader to the Header field.

Headerback to summary
public OVRLayerCylinder Header(Consumer<OVRLayerHeader> consumer)

Passes the Header field to the specified Consumer.

mallocback to summary
public static OVRLayerCylinder malloc()

Returns a new OVRLayerCylinder instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static OVRLayerCylinder.Buffer malloc(int capacity)

Returns a new OVRLayerCylinder.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static OVRLayerCylinder malloc(MemoryStack stack)

Returns a new OVRLayerCylinder instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static OVRLayerCylinder.Buffer malloc(int capacity, MemoryStack stack)

Returns a new OVRLayerCylinder.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

mallocStackback to summary
public static OVRLayerCylinder mallocStack()

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static OVRLayerCylinder mallocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static OVRLayerCylinder.Buffer mallocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static OVRLayerCylinder.Buffer mallocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
nColorTextureback to summary
public static long nColorTexture(long struct)

Unsafe version of ColorTexture.

nColorTextureback to summary
public static void nColorTexture(long struct, long value)

Unsafe version of ColorTexture.

nCylinderAngleback to summary
public static float nCylinderAngle(long struct)

Unsafe version of CylinderAngle.

nCylinderAngleback to summary
public static void nCylinderAngle(long struct, float value)

Unsafe version of CylinderAngle.

nCylinderAspectRatioback to summary
public static float nCylinderAspectRatio(long struct)

Unsafe version of CylinderAspectRatio.

nCylinderAspectRatioback to summary
public static void nCylinderAspectRatio(long struct, float value)

Unsafe version of CylinderAspectRatio.

nCylinderPoseCenterback to summary
public static OVRPosef nCylinderPoseCenter(long struct)

Unsafe version of CylinderPoseCenter.

nCylinderPoseCenterback to summary
public static void nCylinderPoseCenter(long struct, OVRPosef value)

Unsafe version of CylinderPoseCenter.

nCylinderRadiusback to summary
public static float nCylinderRadius(long struct)

Unsafe version of CylinderRadius.

nCylinderRadiusback to summary
public static void nCylinderRadius(long struct, float value)

Unsafe version of CylinderRadius.

nHeaderback to summary
public static OVRLayerHeader nHeader(long struct)

Unsafe version of Header.

nHeaderback to summary
public static void nHeader(long struct, OVRLayerHeader value)

Unsafe version of Header.

nViewportback to summary
public static OVRRecti nViewport(long struct)

Unsafe version of Viewport.

nViewportback to summary
public static void nViewport(long struct, OVRRecti value)

Unsafe version of Viewport.

setback 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.

setback to summary
public OVRLayerCylinder set(OVRLayerCylinder src)

Copies the specified struct data to this struct.

Parameters
src:OVRLayerCylinder

the source struct

Returns:OVRLayerCylinder

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
validateback to summary
public static void validate(long struct)

Validates pointer members that should not be NULL.

Parameters
struct:long

the struct to validate

Viewportback to summary
public OVRRecti Viewport()

specifies the ColorTexture sub-rect UV coordinates

Annotations
@NativeType:ovrRecti
Viewportback to summary
public OVRLayerCylinder Viewport(OVRRecti value)

Copies the specified OVRRecti to the Viewport field.

Viewportback to summary
public OVRLayerCylinder Viewport(Consumer<OVRRecti> consumer)

Passes the Viewport field to the specified Consumer.

org.lwjgl.ovr back to summary

public Class OVRLayerCylinder.Buffer

extends StructBuffer<OVRLayerCylinder, OVRLayerCylinder.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of OVRLayerCylinder structs.

Field Summary

Modifier and TypeField and Description
private static final OVRLayerCylinder

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new OVRLayerCylinder.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the value of the OVRLayerCylinder#ColorTexture field.
ColorTexture
()

public OVRLayerCylinder.Buffer
ColorTexture(long value)

Sets the specified value to the OVRLayerCylinder#ColorTexture field.

public float

Returns:

the value of the OVRLayerCylinder#CylinderAngle field.
CylinderAngle
()

public OVRLayerCylinder.Buffer
CylinderAngle(float value)

Sets the specified value to the OVRLayerCylinder#CylinderAngle field.

public float
public OVRLayerCylinder.Buffer
CylinderAspectRatio(float value)

Sets the specified value to the OVRLayerCylinder#CylinderAspectRatio field.

public OVRPosef
public OVRLayerCylinder.Buffer
public OVRLayerCylinder.Buffer
public float

Returns:

the value of the OVRLayerCylinder#CylinderRadius field.
CylinderRadius
()

public OVRLayerCylinder.Buffer
CylinderRadius(float value)

Sets the specified value to the OVRLayerCylinder#CylinderRadius field.

protected OVRLayerCylinder
public OVRLayerHeader

Returns:

a OVRLayerHeader view of the OVRLayerCylinder#Header field.
Header
()

public OVRLayerCylinder.Buffer
Header(OVRLayerHeader value)

Copies the specified OVRLayerHeader to the OVRLayerCylinder#Header field.

public OVRLayerCylinder.Buffer
Header(Consumer<OVRLayerHeader> consumer)

Passes the OVRLayerCylinder#Header field to the specified Consumer.

protected OVRLayerCylinder.Buffer
public OVRRecti

Returns:

a OVRRecti view of the OVRLayerCylinder#Viewport field.
Viewport
()

public OVRLayerCylinder.Buffer
Viewport(OVRRecti value)

Copies the specified OVRRecti to the OVRLayerCylinder#Viewport field.

public OVRLayerCylinder.Buffer
Viewport(Consumer<OVRRecti> consumer)

Passes the OVRLayerCylinder#Viewport field to the specified Consumer.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final OVRLayerCylinder ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new OVRLayerCylinder.Buffer instance backed by the specified container.

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 OVRLayerCylinder#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

ColorTextureback to summary
public long ColorTexture()
Returns:long

the value of the OVRLayerCylinder#ColorTexture field.

Annotations
@NativeType:ovrTextureSwapChain
ColorTextureback to summary
public OVRLayerCylinder.Buffer ColorTexture(long value)

Sets the specified value to the OVRLayerCylinder#ColorTexture field.

CylinderAngleback to summary
public float CylinderAngle()
Returns:float

the value of the OVRLayerCylinder#CylinderAngle field.

CylinderAngleback to summary
public OVRLayerCylinder.Buffer CylinderAngle(float value)

Sets the specified value to the OVRLayerCylinder#CylinderAngle field.

CylinderAspectRatioback to summary
public float CylinderAspectRatio()
Returns:float

the value of the OVRLayerCylinder#CylinderAspectRatio field.

CylinderAspectRatioback to summary
public OVRLayerCylinder.Buffer CylinderAspectRatio(float value)

Sets the specified value to the OVRLayerCylinder#CylinderAspectRatio field.

CylinderPoseCenterback to summary
public OVRPosef CylinderPoseCenter()
Returns:OVRPosef

a OVRPosef view of the OVRLayerCylinder#CylinderPoseCenter field.

Annotations
@NativeType:ovrPosef
CylinderPoseCenterback to summary
public OVRLayerCylinder.Buffer CylinderPoseCenter(OVRPosef value)

Copies the specified OVRPosef to the OVRLayerCylinder#CylinderPoseCenter field.

CylinderPoseCenterback to summary
public OVRLayerCylinder.Buffer CylinderPoseCenter(Consumer<OVRPosef> consumer)

Passes the OVRLayerCylinder#CylinderPoseCenter field to the specified Consumer.

CylinderRadiusback to summary
public float CylinderRadius()
Returns:float

the value of the OVRLayerCylinder#CylinderRadius field.

CylinderRadiusback to summary
public OVRLayerCylinder.Buffer CylinderRadius(float value)

Sets the specified value to the OVRLayerCylinder#CylinderRadius field.

getElementFactoryback to summary
protected OVRLayerCylinder getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
Headerback to summary
public OVRLayerHeader Header()
Returns:OVRLayerHeader

a OVRLayerHeader view of the OVRLayerCylinder#Header field.

Annotations
@NativeType:ovrLayerHeader
Headerback to summary
public OVRLayerCylinder.Buffer Header(OVRLayerHeader value)

Copies the specified OVRLayerHeader to the OVRLayerCylinder#Header field.

Headerback to summary
public OVRLayerCylinder.Buffer Header(Consumer<OVRLayerHeader> consumer)

Passes the OVRLayerCylinder#Header field to the specified Consumer.

selfback to summary
protected OVRLayerCylinder.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
Viewportback to summary
public OVRRecti Viewport()
Returns:OVRRecti

a OVRRecti view of the OVRLayerCylinder#Viewport field.

Annotations
@NativeType:ovrRecti
Viewportback to summary
public OVRLayerCylinder.Buffer Viewport(OVRRecti value)

Copies the specified OVRRecti to the OVRLayerCylinder#Viewport field.

Viewportback to summary
public OVRLayerCylinder.Buffer Viewport(Consumer<OVRRecti> consumer)

Passes the OVRLayerCylinder#Viewport field to the specified Consumer.