Package com.jozufozu.flywheel.api.vertex
Interface VertexList
- All Known Subinterfaces:
ShadedVertexList
- All Known Implementing Classes:
AbstractVertexList,BlockVertexList,BlockVertexList.Shaded,BlockVertexListUnsafe,BlockVertexListUnsafe.Shaded,PosTexNormalVertexListUnsafe
public interface VertexList
A read only view of a vertex buffer.
VertexList assumes nothing about the layout of the vertices. Implementations should feel free to return constants for values that are unused in their layout.
TODO: more flexible elements?-
Method Summary
Modifier and TypeMethodDescriptionbytegetA(int index) bytegetB(int index) bytegetG(int index) intgetLight(int index) floatgetNX(int index) floatgetNY(int index) floatgetNZ(int index) bytegetR(int index) floatgetU(int index) floatgetV(int index) intfloatgetX(int index) floatgetY(int index) floatgetZ(int index) default booleanisEmpty()
-
Method Details
-
getX
float getX(int index) -
getY
float getY(int index) -
getZ
float getZ(int index) -
getR
byte getR(int index) -
getG
byte getG(int index) -
getB
byte getB(int index) -
getA
byte getA(int index) -
getU
float getU(int index) -
getV
float getV(int index) -
getLight
int getLight(int index) -
getNX
float getNX(int index) -
getNY
float getNY(int index) -
getNZ
float getNZ(int index) -
getVertexCount
int getVertexCount() -
isEmpty
default boolean isEmpty()
-