java.lang.Object
physx.NativeObject
physx.geometry.PxGeometry
physx.geometry.PxHeightFieldGeometry
-
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
ConstructorsModifierConstructorDescriptionprotectedPxHeightFieldGeometry(long address) PxHeightFieldGeometry(PxHeightField hf, PxMeshGeometryFlags flags, float heightScale, float rowScale, float columnScale) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxHeightFieldGeometryarrayGet(long baseAddress, int index) static PxHeightFieldGeometrycreateAt(long address) static PxHeightFieldGeometrycreateAt(long address, PxHeightField hf, PxMeshGeometryFlags flags, float heightScale, float rowScale, float columnScale) static <T> PxHeightFieldGeometrycreateAt(T allocator, NativeObject.Allocator<T> allocate) static <T> PxHeightFieldGeometrycreateAt(T allocator, NativeObject.Allocator<T> allocate, PxHeightField hf, PxMeshGeometryFlags flags, float heightScale, float rowScale, float columnScale) voiddestroy()floatfloatfloatbooleanisValid()voidsetColumnScale(float value) voidsetHeightField(PxHeightField value) voidvoidsetHeightScale(float value) voidsetRowScale(float value) static PxHeightFieldGeometrywrapPointer(long address) Methods inherited from class physx.geometry.PxGeometry
getTypeMethods 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
-
PxHeightFieldGeometry
protected PxHeightFieldGeometry(long address) -
PxHeightFieldGeometry
public PxHeightFieldGeometry() -
PxHeightFieldGeometry
public PxHeightFieldGeometry(PxHeightField hf, PxMeshGeometryFlags flags, float heightScale, float rowScale, float columnScale) - Parameters:
hf- WebIDL type:PxHeightFieldflags- WebIDL type:PxMeshGeometryFlags[Ref]heightScale- WebIDL type: floatrowScale- WebIDL type: floatcolumnScale- WebIDL type: float
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxHeightFieldGeometry
-
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 PxHeightFieldGeometry
-
createAt
public static PxHeightFieldGeometry createAt(long address, PxHeightField hf, PxMeshGeometryFlags flags, float heightScale, float rowScale, float columnScale) - Parameters:
address- Pre-allocated memory, where the object is created.hf- WebIDL type:PxHeightFieldflags- WebIDL type:PxMeshGeometryFlags[Ref]heightScale- WebIDL type: floatrowScale- WebIDL type: floatcolumnScale- WebIDL type: float- Returns:
- Stack allocated object of PxHeightFieldGeometry
-
createAt
public static <T> PxHeightFieldGeometry createAt(T allocator, NativeObject.Allocator<T> allocate, PxHeightField hf, PxMeshGeometryFlags flags, float heightScale, float rowScale, float columnScale) - 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.hf- WebIDL type:PxHeightFieldflags- WebIDL type:PxMeshGeometryFlags[Ref]heightScale- WebIDL type: floatrowScale- WebIDL type: floatcolumnScale- WebIDL type: float- Returns:
- Stack allocated object of PxHeightFieldGeometry
-
destroy
public void destroy()- Overrides:
destroyin classPxGeometry
-
getHeightField
- Returns:
- WebIDL type:
PxHeightField
-
setHeightField
- Parameters:
value- WebIDL type:PxHeightField
-
getHeightScale
public float getHeightScale()- Returns:
- WebIDL type: float
-
setHeightScale
public void setHeightScale(float value) - Parameters:
value- WebIDL type: float
-
getRowScale
public float getRowScale()- Returns:
- WebIDL type: float
-
setRowScale
public void setRowScale(float value) - Parameters:
value- WebIDL type: float
-
getColumnScale
public float getColumnScale()- Returns:
- WebIDL type: float
-
setColumnScale
public void setColumnScale(float value) - Parameters:
value- WebIDL type: float
-
getHeightFieldFlags
- Returns:
- WebIDL type:
PxMeshGeometryFlags[Value]
-
setHeightFieldFlags
- Parameters:
value- WebIDL type:PxMeshGeometryFlags[Value]
-
isValid
public boolean isValid()- Returns:
- WebIDL type: boolean
-