Interface DrawCommand.Primitive
- All Superinterfaces:
DrawCommand
- All Known Implementing Classes:
DrawCommand.ComponentTarget, DrawCommand.Ellipse, DrawCommand.Line, DrawCommand.Poly, DrawCommand.Rect, DrawCommand.Text
- Enclosing interface:
DrawCommand
public static sealed interface DrawCommand.Primitive
extends DrawCommand
permits DrawCommand.Line, DrawCommand.Rect, DrawCommand.Ellipse, DrawCommand.Text, DrawCommand.Poly, DrawCommand.ComponentTarget
A command
debug_draw_set carries: the caller names its kind
and its space, and the producer stores the geometry as sent.
These are the only commands a batch can hold, and that is the whole reason
this type exists rather than being left implicit.
DrawAPI.drawSetBatch(java.util.List)
takes List<Primitive>, so a DrawCommand.Highlight in a batch is a
compile error rather than a producer-side unknown kind at run time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface DrawCommand
DrawCommand.Area, DrawCommand.ComponentTarget, DrawCommand.Ellipse, DrawCommand.Entity, DrawCommand.Highlight, DrawCommand.Line, DrawCommand.Poly, DrawCommand.Primitive, DrawCommand.Rect, DrawCommand.Text, DrawCommand.Tile -
Method Summary
Methods inherited from interface DrawCommand
key, kind, space, style