Package physx.physics
Class PxShapeFlags
- java.lang.Object
-
- physx.NativeObject
-
- physx.physics.PxShapeFlags
-
public class PxShapeFlags extends NativeObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFstatic intSIZEOF-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPxShapeFlags()PxShapeFlags(byte flags)protectedPxShapeFlags(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear(int flag)static PxShapeFlagscreateAt(long address, byte flags)static <T> PxShapeFlagscreateAt(T allocator, NativeObject.Allocator<T> allocate, byte flags)voiddestroy()booleanisSet(int flag)voidset(int flag)static PxShapeFlagswrapPointer(long address)-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Field Detail
-
SIZEOF
public static final int SIZEOF
-
ALIGNOF
public static final int ALIGNOF
- See Also:
- Constant Field Values
-
-
Method Detail
-
wrapPointer
public static PxShapeFlags wrapPointer(long address)
-
createAt
public static PxShapeFlags createAt(long address, byte flags)
- Parameters:
address- Pre-allocated memory, where the object is created.flags- WebIDL type: octet- Returns:
- Stack allocated object of PxShapeFlags
-
createAt
public static <T> PxShapeFlags createAt(T allocator, NativeObject.Allocator<T> allocate, byte 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: octet- Returns:
- Stack allocated object of PxShapeFlags
-
destroy
public void destroy()
-
isSet
public boolean isSet(int flag)
- Parameters:
flag- WebIDL type:PxShapeFlagEnum[enum]- Returns:
- WebIDL type: boolean
-
set
public void set(int flag)
- Parameters:
flag- WebIDL type:PxShapeFlagEnum[enum]
-
clear
public void clear(int flag)
- Parameters:
flag- WebIDL type:PxShapeFlagEnum[enum]
-
-