Package physx.common

Class PxBoundedData

    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxBoundedData

        protected PxBoundedData​(long address)
      • PxBoundedData

        public PxBoundedData()
    • Method Detail

      • wrapPointer

        public static PxBoundedData wrapPointer​(long address)
      • createAt

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

        public static <T> PxBoundedData 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 PxBoundedData
      • destroy

        public void destroy()
      • getCount

        public int getCount()
        Returns:
        WebIDL type: unsigned long
      • setCount

        public void setCount​(int value)
        Parameters:
        value - WebIDL type: unsigned long
      • getStride

        public int getStride()
        Returns:
        WebIDL type: unsigned long
      • setStride

        public void setStride​(int value)
        Parameters:
        value - WebIDL type: unsigned long
      • getData

        public NativeObject getData()
        Returns:
        WebIDL type: VoidPtr [Const]
      • setData

        public void setData​(NativeObject value)
        Parameters:
        value - WebIDL type: VoidPtr [Const]