Interface MeshSink

All Known Subinterfaces:
LineSink, QuadSink, TexturedSink

public interface MeshSink
What every vertex sink shares: a transform applied on the CPU to everything written after it. Positions are multiplied by the matrix and normals by its upper 3x3, then normalized. Transforming on the CPU lets meshes with different transforms, such as the attachments of every player on screen, go out in one draw call.
  • Method Summary

    Modifier and Type
    Method
    Description
    transform(float[] matrix)
    Sets the transform for the vertices that follow.
  • Method Details

    • transform

      MeshSink transform(float[] matrix)
      Sets the transform for the vertices that follow. The matrix is copied.
      Parameters:
      matrix - a column-major 4x4 matrix, or null for none
      Returns:
      this sink