Class XrPassthroughStyleFB

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class XrPassthroughStyleFB
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    A layer style.
    Member Descriptions
    • type is the XrStructureType of this structure.
    • next is NULL or a pointer to the next structure in a structure chain, such as XrPassthroughColorMapMonoToRgbaFB or XrPassthroughColorMapMonoToRgbaFB. The color map structures are mutually exclusive.
    • textureOpacityFactor is the opacity factor in range 0.0 to 1.0.
    • edgeColor is the XrColor4f that defines the color of the edge. Setting edge color to ( 0, 0, 0, 0 ) disables edge rendering.
    Valid Usage (Implicit)
    See Also

    XrColor4f, PassthroughLayerSetStyleFB

    Layout

    
     struct XrPassthroughStyleFB {
         XrStructureType type;
         void const * next;
         float textureOpacityFactor;
         XrColor4f edgeColor;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, TEXTUREOPACITYFACTOR, EDGECOLOR

        The struct member offsets.
    • Constructor Detail

      • XrPassthroughStyleFB

        public XrPassthroughStyleFB​(java.nio.ByteBuffer container)
        Creates a XrPassthroughStyleFB 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

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • type

        public int type()
        Returns:
        the value of the type field.
      • next

        public long next()
        Returns:
        the value of the next field.
      • textureOpacityFactor

        public float textureOpacityFactor()
        Returns:
        the value of the textureOpacityFactor field.
      • edgeColor

        public XrColor4f edgeColor()
        Returns:
        a XrColor4f view of the edgeColor field.
      • type

        public XrPassthroughStyleFB type​(int value)
        Sets the specified value to the type field.
      • next

        public XrPassthroughStyleFB next​(long value)
        Sets the specified value to the next field.
      • textureOpacityFactor

        public XrPassthroughStyleFB textureOpacityFactor​(float value)
        Sets the specified value to the textureOpacityFactor field.
      • edgeColor

        public XrPassthroughStyleFB edgeColor​(java.util.function.Consumer<XrColor4f> consumer)
        Passes the edgeColor field to the specified Consumer.
      • set

        public XrPassthroughStyleFB set​(int type,
                                        long next,
                                        float textureOpacityFactor,
                                        XrColor4f edgeColor)
        Initializes this struct with the specified values.
      • malloc

        public static XrPassthroughStyleFB malloc()
        Returns a new XrPassthroughStyleFB instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static XrPassthroughStyleFB calloc()
        Returns a new XrPassthroughStyleFB instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static XrPassthroughStyleFB create()
        Returns a new XrPassthroughStyleFB instance allocated with BufferUtils.
      • create

        public static XrPassthroughStyleFB create​(long address)
        Returns a new XrPassthroughStyleFB instance for the specified memory address.
      • createSafe

        @Nullable
        public static XrPassthroughStyleFB createSafe​(long address)
        Like create, but returns null if address is NULL.
      • malloc

        public static XrPassthroughStyleFB malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrPassthroughStyleFB instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static XrPassthroughStyleFB calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrPassthroughStyleFB instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

        public static XrPassthroughStyleFB.Buffer malloc​(int capacity,
                                                         org.lwjgl.system.MemoryStack stack)
        Returns a new XrPassthroughStyleFB.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static XrPassthroughStyleFB.Buffer calloc​(int capacity,
                                                         org.lwjgl.system.MemoryStack stack)
        Returns a new XrPassthroughStyleFB.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • ntype

        public static int ntype​(long struct)
        Unsafe version of type().
      • nnext

        public static long nnext​(long struct)
        Unsafe version of next().
      • ntextureOpacityFactor

        public static float ntextureOpacityFactor​(long struct)
        Unsafe version of textureOpacityFactor().
      • ntype

        public static void ntype​(long struct,
                                 int value)
        Unsafe version of type.
      • nnext

        public static void nnext​(long struct,
                                 long value)
        Unsafe version of next.
      • ntextureOpacityFactor

        public static void ntextureOpacityFactor​(long struct,
                                                 float value)
        Unsafe version of textureOpacityFactor.
      • nedgeColor

        public static void nedgeColor​(long struct,
                                      XrColor4f value)
        Unsafe version of edgeColor.