Interface LineSink

All Superinterfaces:
MeshSink

public interface LineSink extends MeshSink
Takes line segments. Each segment becomes a quad that faces the screen and is its width in framebuffer pixels wide at any distance, with an anti-aliased edge one pixel across. Ends are square and stop at the end points. A segment that crosses the near plane is clipped to it; one entirely behind the camera draws nothing.
  • Method Summary

    Modifier and Type
    Method
    Description
    line(float x0, float y0, float z0, float x1, float y1, float z1, int argb, float width)
    Writes one segment.
    transform(float[] matrix)
    Sets the transform for the vertices that follow.
  • Method Details

    • line

      LineSink line(float x0, float y0, float z0, float x1, float y1, float z1, int argb, float width)
      Writes one segment.
      Parameters:
      x0 - start x
      y0 - start y
      z0 - start z
      x1 - end x
      y1 - end y
      z1 - end z
      argb - the colour, 0xAARRGGBB
      width - the width in framebuffer pixels; below 1 it draws one pixel wide and fades instead
      Returns:
      this sink
    • transform

      LineSink 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