Class XrPassthroughColorHTC

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrPassthroughColorHTC>
org.lwjgl.openxr.XrPassthroughColorHTC
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrPassthroughColorHTC extends org.lwjgl.system.Struct<XrPassthroughColorHTC> implements org.lwjgl.system.NativeResource
The alpha value of the passthrough.
Description

The application can specify the XrPassthroughColorHTC to adjust the alpha value of the passthrough. The range is between 0.0f and 1.0f, 1.0f means opaque.

Valid Usage (Implicit)
See Also

XrCompositionLayerPassthroughHTC

Layout


 struct XrPassthroughColorHTC {
     XrStructureType type();
     void const * next();
     float alpha();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • ALPHA

      public static final int ALPHA
      The struct member offsets.
  • Constructor Details

    • XrPassthroughColorHTC

      public XrPassthroughColorHTC(ByteBuffer container)
      Creates a XrPassthroughColorHTC 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 Details

    • sizeof

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

      public int type()
      the XrStructureType of this structure.
    • next

      public long next()
      NULL or a pointer to the next structure in a structure chain.
    • alpha

      public float alpha()
      the alpha value of the passthrough in the range [0, 1].
    • type

      public XrPassthroughColorHTC type(int value)
      Sets the specified value to the type() field.
    • type$Default

      public XrPassthroughColorHTC type$Default()
      Sets the TYPE_PASSTHROUGH_COLOR_HTC value to the type() field.
    • next

      public XrPassthroughColorHTC next(long value)
      Sets the specified value to the next() field.
    • alpha

      public XrPassthroughColorHTC alpha(float value)
      Sets the specified value to the alpha() field.
    • set

      public XrPassthroughColorHTC set(int type, long next, float alpha)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

      public static XrPassthroughColorHTC.Buffer malloc(int capacity)
      Returns a new XrPassthroughColorHTC.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static XrPassthroughColorHTC.Buffer calloc(int capacity)
      Returns a new XrPassthroughColorHTC.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrPassthroughColorHTC.Buffer create(int capacity)
      Returns a new XrPassthroughColorHTC.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrPassthroughColorHTC.Buffer create(long address, int capacity)
      Create a XrPassthroughColorHTC.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable XrPassthroughColorHTC.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

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

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

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

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

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

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

      public static float nalpha(long struct)
      Unsafe version of alpha().
    • 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.
    • nalpha

      public static void nalpha(long struct, float value)
      Unsafe version of alpha.