Interface QuadSink

All Superinterfaces:
MeshSink

public interface QuadSink extends MeshSink
Takes flat-coloured quads: four vertices per quad, in order around it. Each vertex is a position and a colour; there is no lighting or texture. Drawn as two triangles, 0-1-2 and 2-3-0.
  • Method Summary

    Modifier and Type
    Method
    Description
    transform(float[] matrix)
    Sets the transform for the vertices that follow.
    vertex(float x, float y, float z, int argb)
    Writes one vertex.
  • Method Details

    • vertex

      QuadSink vertex(float x, float y, float z, int argb)
      Writes one vertex.
      Parameters:
      x - x
      y - y
      z - z
      argb - the colour, 0xAARRGGBB
      Returns:
      this sink
    • transform

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