Class AbstractVertexView
java.lang.Object
dev.engine_room.flywheel.lib.vertex.AbstractVertexView
- All Implemented Interfaces:
MutableVertexList,VertexList,VertexView
- Direct Known Subclasses:
FullVertexView,NoOverlayVertexView,PosTexNormalVertexView,PosVertexView
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal @Nullable Objectfinal voidnativeMemoryOwner(@Nullable Object owner) The memory referenced by this vertex view's pointer may be owned by another object, such that the memory is automatically freed when the other object becomes phantom reachable or is garbage collected.longptr()voidptr(long ptr) intvoidvertexCount(int vertexCount) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.engine_room.flywheel.api.vertex.MutableVertexList
a, b, g, light, normalX, normalY, normalZ, overlay, r, u, v, x, y, z
-
Field Details
-
ptr
protected long ptr -
vertexCount
protected int vertexCount
-
-
Constructor Details
-
AbstractVertexView
public AbstractVertexView()
-
-
Method Details
-
ptr
public long ptr()- Specified by:
ptrin interfaceVertexView
-
ptr
public void ptr(long ptr) - Specified by:
ptrin interfaceVertexView
-
vertexCount
public int vertexCount()- Specified by:
vertexCountin interfaceVertexList
-
vertexCount
public void vertexCount(int vertexCount) - Specified by:
vertexCountin interfaceVertexView
-
nativeMemoryOwner
- Specified by:
nativeMemoryOwnerin interfaceVertexView
-
nativeMemoryOwner
Description copied from interface:VertexViewThe memory referenced by this vertex view's pointer may be owned by another object, such that the memory is automatically freed when the other object becomes phantom reachable or is garbage collected. Use this method to ensure this vertex view retains a strong reference to the memory owner so this vertex view's pointer remains valid even when no other references to the memory owner are retained.- Specified by:
nativeMemoryOwnerin interfaceVertexView
-