Package util.debug
Class DebugLine
java.lang.Object
util.debug.DebugLine
Represents a Line which can be rendered by DebugRenderer
The most basic primitive for Debug Rendering
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
start
public org.joml.Vector2f startStart point for the line -
end
public org.joml.Vector2f endEnd point of the line -
color
Color of the line -
dirty
public boolean dirtyWere 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 lineend
- end point of the line
-
DebugLine
Creates a line with a given start and end point and the specified color- Parameters:
start
- start point of the lineend
- end point of the linecolor
- 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
-