java.lang.Object
physx.NativeObject
physx.geometry.PxHeightFieldSample
-
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 PxHeightFieldSamplearrayGet(long baseAddress, int index) voidstatic PxHeightFieldSamplecreateAt(long address) static <T> PxHeightFieldSamplecreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()shortbytebytevoidsetHeight(short value) voidsetMaterialIndex0(byte value) voidsetMaterialIndex1(byte value) voidbytetessFlag()static PxHeightFieldSamplewrapPointer(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
-
PxHeightFieldSample
protected PxHeightFieldSample(long address) -
PxHeightFieldSample
public PxHeightFieldSample()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxHeightFieldSample
-
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 PxHeightFieldSample
-
destroy
public void destroy() -
getHeight
public short getHeight()- Returns:
- WebIDL type: short
-
setHeight
public void setHeight(short value) - Parameters:
value- WebIDL type: short
-
getMaterialIndex0
public byte getMaterialIndex0()- Returns:
- WebIDL type: octet
-
setMaterialIndex0
public void setMaterialIndex0(byte value) - Parameters:
value- WebIDL type: octet
-
getMaterialIndex1
public byte getMaterialIndex1()- Returns:
- WebIDL type: octet
-
setMaterialIndex1
public void setMaterialIndex1(byte value) - Parameters:
value- WebIDL type: octet
-
tessFlag
public byte tessFlag()- Returns:
- WebIDL type: octet
-
clearTessFlag
public void clearTessFlag() -
setTessFlag
public void setTessFlag()
-