Package com.jozufozu.flywheel.lib.model
Class SimpleMesh
java.lang.Object
com.jozufozu.flywheel.lib.model.SimpleMesh
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleMesh(VertexView vertexView, MemoryBlock data) SimpleMesh(VertexView vertexView, MemoryBlock data, @Nullable String descriptor) -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector4fcGet a vec4 representing this mesh's bounding sphere in the format (x, y, z, radius).voiddelete()Free this mesh's resources, memory, etc.toString()intvoidwrite(MutableVertexList dst) Write this mesh into a vertex list.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.lib.model.QuadMesh
indexCount, indexSequence
-
Constructor Details
-
SimpleMesh
-
SimpleMesh
-
-
Method Details
-
vertexCount
public int vertexCount()- Specified by:
vertexCountin interfaceMesh- Returns:
- The number of vertices this mesh has.
-
write
Description copied from interface:MeshWrite this mesh into a vertex list. Vertices with index <0 or >=Mesh.vertexCount()will not be read or modified. -
boundingSphere
public org.joml.Vector4fc boundingSphere()Description copied from interface:MeshGet a vec4 representing this mesh's bounding sphere in the format (x, y, z, radius).- Specified by:
boundingSpherein interfaceMesh- Returns:
- A vec4 view.
-
delete
public void delete()Description copied from interface:MeshFree this mesh's resources, memory, etc. -
toString
-