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 Type
    Method
    Description
    byte
    getA(int index)
     
    byte
    getB(int index)
     
    byte
    getG(int index)
     
    int
    getLight(int index)
     
    float
    getNX(int index)
     
    float
    getNY(int index)
     
    float
    getNZ(int index)
     
    byte
    getR(int index)
     
    float
    getU(int index)
     
    float
    getV(int index)
     
    int
     
    float
    getX(int index)
     
    float
    getY(int index)
     
    float
    getZ(int index)
     
    default boolean
     
  • 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()