Class BlockVertex
java.lang.Object
com.jozufozu.flywheel.core.vertex.BlockVertex
- All Implemented Interfaces:
VertexType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateReader(com.mojang.blaze3d.vertex.BufferBuilder.RenderedBuffer renderedBuffer, int unshadedStartVertex) createReader(ByteBuffer buffer, int vertexCount) Create a view of the given ByteBuffer as if it were already filled with vertices.createReader(ByteBuffer buffer, int vertexCount, int unshadedStartVertex) createWriter(ByteBuffer buffer) Create a writer backed by the given ByteBuffer.The layout of this type of vertex when buffered.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.api.vertex.VertexType
byteOffset, getStride
-
Field Details
-
FORMAT
-
-
Constructor Details
-
BlockVertex
public BlockVertex()
-
-
Method Details
-
getLayout
Description copied from interface:VertexTypeThe layout of this type of vertex when buffered.- Specified by:
getLayoutin interfaceVertexType
-
createWriter
Description copied from interface:VertexTypeCreate a writer backed by the given ByteBuffer.Implementors are encouraged to override the return type for ergonomics.
- Specified by:
createWriterin interfaceVertexType
-
createReader
Description copied from interface:VertexTypeCreate a view of the given ByteBuffer as if it were already filled with vertices.Implementors are encouraged to override the return type for ergonomics.
- Specified by:
createReaderin interfaceVertexType
-
getShaderHeader
- Specified by:
getShaderHeaderin interfaceVertexType
-
createReader
public BlockVertexListUnsafe.Shaded createReader(ByteBuffer buffer, int vertexCount, int unshadedStartVertex) -
createReader
public VertexList createReader(com.mojang.blaze3d.vertex.BufferBuilder.RenderedBuffer renderedBuffer, int unshadedStartVertex)
-