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 - WebIDL type: unsigned short
    • Method Detail

      • wrapPointer

        public static PxConvexFlags wrapPointer​(long address)
      • createAt

        public static PxConvexFlags createAt​(long address,
                                             short flags)
        Parameters:
        address - Pre-allocated memory, where the object is created.
        flags - WebIDL type: unsigned short
        Returns:
        Stack allocated object of PxConvexFlags
      • createAt

        public static <T> PxConvexFlags createAt​(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 - WebIDL type: unsigned short
        Returns:
        Stack allocated object of PxConvexFlags
      • destroy

        public void destroy()
      • isSet

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

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

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