Class XrSceneObjectMSFT

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

public class XrSceneObjectMSFT extends org.lwjgl.system.Struct<XrSceneObjectMSFT> implements org.lwjgl.system.NativeResource
Scene object.
Valid Usage (Implicit)
See Also

XrSceneObjectsMSFT

Layout


 struct XrSceneObjectMSFT {
     XrSceneObjectTypeMSFT objectType();
 }
  • Field Details

    • SIZEOF

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

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

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

    • XrSceneObjectMSFT

      public XrSceneObjectMSFT(ByteBuffer container)
      Creates a XrSceneObjectMSFT 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<XrSceneObjectMSFT>
    • objectType

      public int objectType()
      the type of the object specified by XrSceneObjectTypeMSFT.
    • objectType

      public XrSceneObjectMSFT objectType(int value)
      Sets the specified value to the objectType() field.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nobjectType(long struct)
      Unsafe version of objectType().
    • nobjectType

      public static void nobjectType(long struct, int value)
      Unsafe version of objectType.