java.lang.Object
physx.NativeObject
physx.support.PxArray_PxU32
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxArray_PxU32arrayGet(long baseAddress, int index) begin()voidclear()static PxArray_PxU32createAt(long address) static PxArray_PxU32createAt(long address, int size) static <T> PxArray_PxU32createAt(T allocator, NativeObject.Allocator<T> allocate) static <T> PxArray_PxU32createAt(T allocator, NativeObject.Allocator<T> allocate, int size) voiddestroy()intget(int index) voidpushBack(int value) voidset(int index, int value) intsize()static PxArray_PxU32wrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxArray_PxU32
protected PxArray_PxU32(long address) -
PxArray_PxU32
public PxArray_PxU32() -
PxArray_PxU32
public PxArray_PxU32(int size) - Parameters:
size- WebIDL type: unsigned long
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxArray_PxU32
-
createAt
- 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.- Returns:
- Stack allocated object of PxArray_PxU32
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.size- WebIDL type: unsigned long- Returns:
- Stack allocated object of PxArray_PxU32
-
createAt
- 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.size- WebIDL type: unsigned long- Returns:
- Stack allocated object of PxArray_PxU32
-
destroy
public void destroy() -
get
public int get(int index) - Parameters:
index- WebIDL type: unsigned long- Returns:
- WebIDL type: unsigned long
-
set
public void set(int index, int value) - Parameters:
index- WebIDL type: unsigned longvalue- WebIDL type: unsigned long
-
begin
- Returns:
- WebIDL type: VoidPtr
-
size
public int size()- Returns:
- WebIDL type: unsigned long
-
pushBack
public void pushBack(int value) - Parameters:
value- WebIDL type: unsigned long
-
clear
public void clear()
-