java.lang.Object
physx.NativeObject
physx.common.PxRenderBuffer
Interface for points, lines, triangles, and text buffer.
-
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 TypeMethodDescriptionvoidaddLine(PxDebugLine line) voidaddPoint(PxDebugPoint point) voidaddTriangle(PxDebugTriangle triangle) voidappend(PxRenderBuffer other) static PxRenderBufferarrayGet(long baseAddress, int index) voidclear()booleanempty()getLines()intintintreserveLines(int nbLines) reservePoints(int nbLines) voidstatic PxRenderBufferwrapPointer(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
-
PxRenderBuffer
protected PxRenderBuffer() -
PxRenderBuffer
protected PxRenderBuffer(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
getNbPoints
public int getNbPoints()- Returns:
- WebIDL type: unsigned long
-
getPoints
- Returns:
- WebIDL type:
PxDebugPoint[Const]
-
addPoint
- Parameters:
point- WebIDL type:PxDebugPoint[Const, Ref]
-
getNbLines
public int getNbLines()- Returns:
- WebIDL type: unsigned long
-
getLines
- Returns:
- WebIDL type:
PxDebugLine[Const]
-
addLine
- Parameters:
line- WebIDL type:PxDebugLine[Const, Ref]
-
reserveLines
- Parameters:
nbLines- WebIDL type: unsigned long [Const]- Returns:
- WebIDL type:
PxDebugLine
-
reservePoints
- Parameters:
nbLines- WebIDL type: unsigned long [Const]- Returns:
- WebIDL type:
PxDebugPoint
-
getNbTriangles
public int getNbTriangles()- Returns:
- WebIDL type: unsigned long
-
getTriangles
- Returns:
- WebIDL type:
PxDebugTriangle[Const]
-
addTriangle
- Parameters:
triangle- WebIDL type:PxDebugTriangle[Const, Ref]
-
append
- Parameters:
other- WebIDL type:PxRenderBuffer[Const, Ref]
-
clear
public void clear() -
shift
- Parameters:
delta- WebIDL type:PxVec3[Const, Ref]
-
empty
public boolean empty()- Returns:
- WebIDL type: boolean
-