Package util.debug

Class DebugLine

java.lang.Object
util.debug.DebugLine

public class DebugLine extends Object
Represents a Line which can be rendered by DebugRenderer The most basic primitive for Debug Rendering
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Color of the line
    boolean
    Were any values of the above changed.
    org.joml.Vector2f
    End point of the line
    org.joml.Vector2f
    Start point for the line
  • Constructor Summary

    Constructors
    Constructor
    Description
    DebugLine(org.joml.Vector2f start, org.joml.Vector2f end)
    Creates a line with a given start and end point with a White color
    DebugLine(org.joml.Vector2f start, org.joml.Vector2f end, Color color)
    Creates a line with a given start and end point and the specified color
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Were any values changed.
    void
    Mark this line clean so renderer doesn't update the values of this line
    void
    Mark this line dirty so renderer can reflect changed values

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • start

      public org.joml.Vector2f start
      Start point for the line
    • end

      public org.joml.Vector2f end
      End point of the line
    • color

      public Color color
      Color of the line
    • dirty

      public boolean dirty
      Were any values of the above changed.
  • Constructor Details

    • DebugLine

      public DebugLine(org.joml.Vector2f start, org.joml.Vector2f end)
      Creates a line with a given start and end point with a White color
      Parameters:
      start - start point of the line
      end - end point of the line
    • DebugLine

      public DebugLine(org.joml.Vector2f start, org.joml.Vector2f end, Color color)
      Creates a line with a given start and end point and the specified color
      Parameters:
      start - start point of the line
      end - end point of the line
      color - color of the line
  • Method Details

    • isDirty

      public boolean isDirty()
      Were any values changed.
    • markDirty

      public void markDirty()
      Mark this line dirty so renderer can reflect changed values
    • markClean

      public void markClean()
      Mark this line clean so renderer doesn't update the values of this line