Class XrTriangleMeshCreateInfoFB

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, FLAGS, WINDINGORDER, VERTEXCOUNT, VERTEXBUFFER, TRIANGLECOUNT, INDEXBUFFER

        The struct member offsets.
    • Constructor Detail

      • XrTriangleMeshCreateInfoFB

        public XrTriangleMeshCreateInfoFB​(java.nio.ByteBuffer container)
        Creates a XrTriangleMeshCreateInfoFB 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()
        the XrStructureType of this structure.
      • next

        public long next()
        NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
      • flags

        public long flags()
        a bitmask of XrTriangleMeshFlagBitsFB that specify behavior.
      • windingOrder

        public int windingOrder()
        the XrWindingOrderFB value defining the winding order of the mesh triangles.
      • vertexCount

        public int vertexCount()
        the number of vertices in the mesh. In the case of the mutable mesh, the value is treated as the maximum number of vertices the mesh will be able to represent at any time in its lifecycle. The actual number of vertices can vary and is defined when TriangleMeshEndUpdateFB is called.
      • vertexBuffer

        @Nullable
        public XrVector3f vertexBuffer()
        a pointer to the vertex data. The size of the array must be vertexCount elements. When the mesh is mutable (({@code flags} & {@link FBTriangleMesh#XR_TRIANGLE_MESH_MUTABLE_BIT_FB TRIANGLE_MESH_MUTABLE_BIT_FB}) != 0), the vertexBuffer parameter must be NULL and mesh data must be populated separately.
      • triangleCount

        public int triangleCount()
        the number of triangles in the mesh. In the case of the mutable mesh, the value is treated as the maximum number of triangles the mesh will be able to represent at any time in its lifecycle. The actual number of triangles can vary and is defined when TriangleMeshEndUpdateFB is called.
      • indexBuffer

        @Nullable
        public java.nio.IntBuffer indexBuffer​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        the triangle indices. The size of the array must be triangleCount elements. When the mesh is mutable (({@code flags} & {@link FBTriangleMesh#XR_TRIANGLE_MESH_MUTABLE_BIT_FB TRIANGLE_MESH_MUTABLE_BIT_FB}) != 0), the indexBuffer parameter must be NULL and mesh data must be populated separately.
      • set

        public XrTriangleMeshCreateInfoFB set​(int type,
                                              long next,
                                              long flags,
                                              int windingOrder,
                                              int vertexCount,
                                              @Nullable
                                              XrVector3f vertexBuffer,
                                              int triangleCount,
                                              @Nullable
                                              java.nio.IntBuffer indexBuffer)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

        public static long nflags​(long struct)
        Unsafe version of flags().
      • nwindingOrder

        public static int nwindingOrder​(long struct)
        Unsafe version of windingOrder().
      • nvertexCount

        public static int nvertexCount​(long struct)
        Unsafe version of vertexCount().
      • ntriangleCount

        public static int ntriangleCount​(long struct)
        Unsafe version of triangleCount().
      • nindexBuffer

        @Nullable
        public static java.nio.IntBuffer nindexBuffer​(long struct,
                                                      int capacity)
        Unsafe version of indexBuffer.
      • 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.
      • nflags

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

        public static void nwindingOrder​(long struct,
                                         int value)
        Unsafe version of windingOrder.
      • nvertexCount

        public static void nvertexCount​(long struct,
                                        int value)
        Unsafe version of vertexCount.
      • nvertexBuffer

        public static void nvertexBuffer​(long struct,
                                         @Nullable
                                         XrVector3f value)
        Unsafe version of vertexBuffer.
      • ntriangleCount

        public static void ntriangleCount​(long struct,
                                          int value)
        Unsafe version of triangleCount.
      • nindexBuffer

        public static void nindexBuffer​(long struct,
                                        @Nullable
                                        java.nio.IntBuffer value)
        Unsafe version of indexBuffer.