Package org.lwjgl.ovr

Class OVRLayerCylinder.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.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.

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • ColorTexture

        public long ColorTexture()
        Returns the value of the ColorTexture field.
      • Viewport

        public OVRRecti Viewport()
        Returns a OVRRecti view of the Viewport field.
      • Viewport

        public OVRLayerCylinder.Buffer Viewport​(java.util.function.Consumer<OVRRecti> consumer)
        Passes the Viewport field to the specified Consumer.
      • CylinderPoseCenter

        public OVRPosef CylinderPoseCenter()
        Returns a OVRPosef view of the CylinderPoseCenter field.
      • CylinderPoseCenter

        public OVRLayerCylinder.Buffer CylinderPoseCenter​(java.util.function.Consumer<OVRPosef> consumer)
        Passes the CylinderPoseCenter field to the specified Consumer.
      • CylinderRadius

        public float CylinderRadius()
        Returns the value of the CylinderRadius field.
      • CylinderAngle

        public float CylinderAngle()
        Returns the value of the CylinderAngle field.
      • CylinderAspectRatio

        public float CylinderAspectRatio()
        Returns the value of the CylinderAspectRatio field.
      • ColorTexture

        public OVRLayerCylinder.Buffer ColorTexture​(long value)
        Sets the specified value to the ColorTexture field.
      • CylinderRadius

        public OVRLayerCylinder.Buffer CylinderRadius​(float value)
        Sets the specified value to the CylinderRadius field.
      • CylinderAngle

        public OVRLayerCylinder.Buffer CylinderAngle​(float value)
        Sets the specified value to the CylinderAngle field.
      • CylinderAspectRatio

        public OVRLayerCylinder.Buffer CylinderAspectRatio​(float value)
        Sets the specified value to the CylinderAspectRatio field.