Package physx.physics
Class PxHitFlags
- java.lang.Object
-
- physx.NativeObject
-
- physx.physics.PxHitFlags
-
public class PxHitFlags 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, isStackAllocated
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPxHitFlags()protectedPxHitFlags(long address)PxHitFlags(short flags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear(int flag)voiddestroy()booleanisSet(int flag)static PxHitFlagsmalloc(long address, short flags)static <T> PxHitFlagsmalloc(T allocator, NativeObject.Allocator<T> allocate, short flags)voidset(int flag)static PxHitFlagswrapPointer(long address)-
Methods inherited from class physx.NativeObject
getAddress
-
-
-
-
Field Detail
-
SIZEOF
public static final int SIZEOF
-
ALIGNOF
public static final int ALIGNOF
- See Also:
- Constant Field Values
-
-
Method Detail
-
wrapPointer
public static PxHitFlags wrapPointer(long address)
-
malloc
public static PxHitFlags malloc(long address, short flags)
- Parameters:
address- where the object is allocatedflags- unsigned short- Returns:
- Stack allocated object of PxHitFlags
-
malloc
public static <T> PxHitFlags 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 PxHitFlags
-
destroy
public void destroy()
-
isSet
public boolean isSet(int flag)
- Parameters:
flag-PxHitFlagEnum[enum]- Returns:
- boolean
-
set
public void set(int flag)
- Parameters:
flag-PxHitFlagEnum[enum]
-
clear
public void clear(int flag)
- Parameters:
flag-PxHitFlagEnum[enum]
-
-