Class XrGlobalDimmerFrameEndInfoML

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

public class XrGlobalDimmerFrameEndInfoML extends org.lwjgl.system.Struct<XrGlobalDimmerFrameEndInfoML> implements org.lwjgl.system.NativeResource
Global Dimmer End Frame Information.
Valid Usage (Implicit)

Layout


 struct XrGlobalDimmerFrameEndInfoML {
     XrStructureType type();
     void const * next();
     float dimmerValue();
     XrGlobalDimmerFrameEndInfoFlagsML flags();
 }
  • 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.
    • DIMMERVALUE

      public static final int DIMMERVALUE
      The struct member offsets.
    • FLAGS

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

    • XrGlobalDimmerFrameEndInfoML

      public XrGlobalDimmerFrameEndInfoML(ByteBuffer container)
      Creates a XrGlobalDimmerFrameEndInfoML 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<XrGlobalDimmerFrameEndInfoML>
    • 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.
    • dimmerValue

      public float dimmerValue()
      a value between 0.0 (transparent) and 1.0 (opaque). The runtime may adjust the dimmerValue used during composition at the runtime’s discretion. This may be done for user safety, display performance, or other reasons. Values outside of the range are silently clamped.
    • flags

      public long flags()
      a bitmask of XrGlobalDimmerFrameEndInfoFlagsML
    • type

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

      public XrGlobalDimmerFrameEndInfoML type$Default()
      Sets the TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML value to the type() field.
    • next

      public XrGlobalDimmerFrameEndInfoML next(long value)
      Sets the specified value to the next() field.
    • dimmerValue

      public XrGlobalDimmerFrameEndInfoML dimmerValue(float value)
      Sets the specified value to the dimmerValue() field.
    • flags

      public XrGlobalDimmerFrameEndInfoML flags(long value)
      Sets the specified value to the flags() field.
    • set

      public XrGlobalDimmerFrameEndInfoML set(int type, long next, float dimmerValue, long flags)
      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 XrGlobalDimmerFrameEndInfoML malloc()
      Returns a new XrGlobalDimmerFrameEndInfoML instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static XrGlobalDimmerFrameEndInfoML.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XrGlobalDimmerFrameEndInfoML.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().
    • ndimmerValue

      public static float ndimmerValue(long struct)
      Unsafe version of dimmerValue().
    • nflags

      public static long nflags(long struct)
      Unsafe version of flags().
    • 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.
    • ndimmerValue

      public static void ndimmerValue(long struct, float value)
      Unsafe version of dimmerValue.
    • nflags

      public static void nflags(long struct, long value)
      Unsafe version of flags.