Package physx.common
Class PxBoundedData
- java.lang.Object
-
- physx.NativeObject
-
- physx.common.PxBoundedData
-
public class PxBoundedData 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 PxBoundedData()protectedPxBoundedData(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PxBoundedDatacreateAt(long address)static <T> PxBoundedDatacreateAt(T allocator, NativeObject.Allocator<T> allocate)voiddestroy()intgetCount()NativeObjectgetData()intgetStride()voidsetCount(int value)voidsetData(NativeObject value)voidsetStride(int value)static PxBoundedDatawrapPointer(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 PxBoundedData wrapPointer(long address)
-
createAt
public static PxBoundedData createAt(long address)
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxBoundedData
-
createAt
public static <T> PxBoundedData createAt(T allocator, NativeObject.Allocator<T> allocate)
- 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 PxBoundedData
-
destroy
public void destroy()
-
getCount
public int getCount()
- Returns:
- WebIDL type: unsigned long
-
setCount
public void setCount(int value)
- Parameters:
value- WebIDL type: unsigned long
-
getStride
public int getStride()
- Returns:
- WebIDL type: unsigned long
-
setStride
public void setStride(int value)
- Parameters:
value- WebIDL type: unsigned long
-
getData
public NativeObject getData()
- Returns:
- WebIDL type: VoidPtr [Const]
-
setData
public void setData(NativeObject value)
- Parameters:
value- WebIDL type: VoidPtr [Const]
-
-