Package physx.physics
Class PxSceneFlags
- java.lang.Object
-
- physx.NativeObject
-
- physx.physics.PxSceneFlags
-
public class PxSceneFlags 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 protectedPxSceneFlags()PxSceneFlags(int flags)protectedPxSceneFlags(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear(int flag)voiddestroy()booleanisSet(int flag)static PxSceneFlagsmalloc(long address, int flags)static <T> PxSceneFlagsmalloc(T allocator, NativeObject.Allocator<T> allocate, int flags)voidset(int flag)static PxSceneFlagswrapPointer(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 PxSceneFlags wrapPointer(long address)
-
malloc
public static PxSceneFlags malloc(long address, int flags)
- Parameters:
address- where the object is allocatedflags- unsigned long- Returns:
- Stack allocated object of PxSceneFlags
-
malloc
public static <T> PxSceneFlags malloc(T allocator, NativeObject.Allocator<T> allocate, int 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 long- Returns:
- Stack allocated object of PxSceneFlags
-
destroy
public void destroy()
-
isSet
public boolean isSet(int flag)
- Parameters:
flag-PxSceneFlagEnum[enum]- Returns:
- boolean
-
set
public void set(int flag)
- Parameters:
flag-PxSceneFlagEnum[enum]
-
clear
public void clear(int flag)
- Parameters:
flag-PxSceneFlagEnum[enum]
-
-