Package physx.cooking

Class PxTriangleMeshDesc

    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxTriangleMeshDesc

        protected PxTriangleMeshDesc​(long address)
      • PxTriangleMeshDesc

        public PxTriangleMeshDesc()
    • Method Detail

      • createAt

        public static PxTriangleMeshDesc createAt​(long address)
        Parameters:
        address - Pre-allocated memory, where the object is created.
        Returns:
        Stack allocated object of PxTriangleMeshDesc
      • createAt

        public static <T> PxTriangleMeshDesc createAt​(T allocator,
                                                      NativeObject.Allocator<T> allocate)
        Type Parameters:
        T - Allocator class, e.g. LWJGL's MemoryStack.
        Parameters:
        allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
        allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
        Returns:
        Stack allocated object of PxTriangleMeshDesc