Class InferredVertexView

java.lang.Object
com.jozufozu.flywheel.lib.vertex.AbstractVertexView
com.jozufozu.flywheel.impl.vertex.InferredVertexView
All Implemented Interfaces:
MutableVertexList, VertexList, VertexView

public class InferredVertexView extends AbstractVertexView implements VertexView
  • Field Details

    • format

      protected final com.mojang.blaze3d.vertex.VertexFormat format
    • stride

      protected final int stride
    • positionOffset

      protected final int positionOffset
    • colorOffset

      protected final int colorOffset
    • textureOffset

      protected final int textureOffset
    • overlayOffset

      protected final int overlayOffset
    • lightOffset

      protected final int lightOffset
    • normalOffset

      protected final int normalOffset
  • Constructor Details

  • Method Details

    • stride

      public long stride()
      Specified by:
      stride in interface VertexView
    • x

      public float x(int index)
      Specified by:
      x in interface VertexList
    • y

      public float y(int index)
      Specified by:
      y in interface VertexList
    • z

      public float z(int index)
      Specified by:
      z in interface VertexList
    • r

      public float r(int index)
      Specified by:
      r in interface VertexList
    • g

      public float g(int index)
      Specified by:
      g in interface VertexList
    • b

      public float b(int index)
      Specified by:
      b in interface VertexList
    • a

      public float a(int index)
      Specified by:
      a in interface VertexList
    • u

      public float u(int index)
      Specified by:
      u in interface VertexList
    • v

      public float v(int index)
      Specified by:
      v in interface VertexList
    • overlay

      public int overlay(int index)
      Specified by:
      overlay in interface VertexList
    • light

      public int light(int index)
      Specified by:
      light in interface VertexList
    • normalX

      public float normalX(int index)
      Specified by:
      normalX in interface VertexList
    • normalY

      public float normalY(int index)
      Specified by:
      normalY in interface VertexList
    • normalZ

      public float normalZ(int index)
      Specified by:
      normalZ in interface VertexList
    • x

      public void x(int index, float x)
      Specified by:
      x in interface MutableVertexList
    • y

      public void y(int index, float y)
      Specified by:
      y in interface MutableVertexList
    • z

      public void z(int index, float z)
      Specified by:
      z in interface MutableVertexList
    • r

      public void r(int index, float r)
      Specified by:
      r in interface MutableVertexList
    • g

      public void g(int index, float g)
      Specified by:
      g in interface MutableVertexList
    • b

      public void b(int index, float b)
      Specified by:
      b in interface MutableVertexList
    • a

      public void a(int index, float a)
      Specified by:
      a in interface MutableVertexList
    • u

      public void u(int index, float u)
      Specified by:
      u in interface MutableVertexList
    • v

      public void v(int index, float v)
      Specified by:
      v in interface MutableVertexList
    • overlay

      public void overlay(int index, int overlay)
      Specified by:
      overlay in interface MutableVertexList
    • light

      public void light(int index, int light)
      Specified by:
      light in interface MutableVertexList
    • normalX

      public void normalX(int index, float normalX)
      Specified by:
      normalX in interface MutableVertexList
    • normalY

      public void normalY(int index, float normalY)
      Specified by:
      normalY in interface MutableVertexList
    • normalZ

      public void normalZ(int index, float normalZ)
      Specified by:
      normalZ in interface MutableVertexList