public class PxBaseFlags extends NativeObject
NativeObject.Allocator<T>| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF |
static int |
SIZEOF |
address, isExternallyAllocated| Modifier | Constructor and Description |
|---|---|
protected |
PxBaseFlags() |
protected |
PxBaseFlags(long address) |
|
PxBaseFlags(short flags) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(int flag) |
static PxBaseFlags |
createAt(long address,
short flags) |
static <T> PxBaseFlags |
createAt(T allocator,
NativeObject.Allocator<T> allocate,
short flags) |
void |
destroy() |
boolean |
isSet(int flag) |
void |
set(int flag) |
static PxBaseFlags |
wrapPointer(long address) |
checkNotNull, equals, getAddress, hashCodepublic static final int SIZEOF
public static final int ALIGNOF
protected PxBaseFlags()
protected PxBaseFlags(long address)
public PxBaseFlags(short flags)
flags - WebIDL type: unsigned shortpublic static PxBaseFlags wrapPointer(long address)
public static PxBaseFlags createAt(long address, short flags)
address - Pre-allocated memory, where the object is created.flags - WebIDL type: unsigned shortpublic static <T> PxBaseFlags createAt(T allocator, NativeObject.Allocator<T> allocate, short flags)
T - Allocator class, e.g. LWJGL's MemoryStack.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 shortpublic void destroy()
public boolean isSet(int flag)
flag - WebIDL type: PxBaseFlagEnum [enum]public void set(int flag)
flag - WebIDL type: PxBaseFlagEnum [enum]public void clear(int flag)
flag - WebIDL type: PxBaseFlagEnum [enum]