Class XrSceneObjectMSFT

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

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

    XrSceneObjectsMSFT

    Layout

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

      • 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 Detail

      • XrSceneObjectMSFT

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

      • sizeof

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

        public int objectType()
        the type of the object specified by XrSceneObjectTypeMSFT.
      • 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

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

        @Nullable
        public static 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nobjectType

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

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