Package physx.cooking

Class PxConvexFlags

    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxConvexFlags

        protected PxConvexFlags()
      • PxConvexFlags

        protected PxConvexFlags​(long address)
      • PxConvexFlags

        public PxConvexFlags​(short flags)
        Parameters:
        flags - unsigned short
    • Method Detail

      • wrapPointer

        public static PxConvexFlags wrapPointer​(long address)
      • malloc

        public static PxConvexFlags malloc​(long address,
                                           short flags)
        Parameters:
        address - where the object is allocated
        flags - unsigned short
        Returns:
        Stack allocated object of PxConvexFlags
      • malloc

        public static <T> PxConvexFlags malloc​(T allocator,
                                               NativeObject.Allocator<T> allocate,
                                               short flags)
        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.
        flags - unsigned short
        Returns:
        Stack allocated object of PxConvexFlags
      • destroy

        public void destroy()
      • isSet

        public boolean isSet​(int flag)
        Parameters:
        flag - PxConvexFlagEnum [enum]
        Returns:
        boolean
      • set

        public void set​(int flag)
        Parameters:
        flag - PxConvexFlagEnum [enum]
      • clear

        public void clear​(int flag)
        Parameters:
        flag - PxConvexFlagEnum [enum]