CanvasDebugDraw class
Constructors
- CanvasDebugDraw(ViewportTransform viewport, Canvas canvas)
Properties
Methods
-
appendFlags(
int flags) → void -
inherited
-
clearFlags(
int flags) → void -
inherited
-
drawCircle(
Vector2 center, num radius, Color3i color) → void - Draw a circle.
-
drawCircleAxis(
Vector2 center, double radius, Vector2 axis, Color3i color) → void -
Draws a circle with an axis.
inherited
-
drawParticles(
List< Particle> particles, double radius) → void - Draw a particle array.
-
drawParticlesWireframe(
List< Particle> particles, double radius) → void - Draw a particle array.
-
drawPoint(
Vector2 argPoint, double argRadiusOnScreen, Color3i argColor) → void -
drawPolygon(
List< Vector2> vertices, Color3i color) → void - Draw a closed polygon provided in counter-clockwise order.
-
drawSegment(
Vector2 p1, Vector2 p2, Color3i color) → void - Draw a line segment.
-
drawSolidCircle(
Vector2 center, num radius, Color3i color) → void - Draw a solid circle.
-
drawSolidPolygon(
List< Vector2> vertices, Color3i color) → void - Draw a solid closed polygon provided in counter-clockwise order.
-
drawString(
Vector2 pos, String s, Color3i color) → void -
inherited
-
drawStringXY(
num x, num y, String s, Color3i color) → void - Draw a string.
-
drawTransform(
dynamic xf, Color3i color) → void - Draw a transform.
-
flush(
) → void -
Called at the end of drawing a world.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
screenToWorld(
Vector2 argScreen) → Vector2 -
Takes the screen coordinates (argScreen) and returns the world
coordinates.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
worldToScreen(
Vector2 argWorld) → Vector2 -
Takes the world coordinate and returns the screen coordinates.
inherited
-
worldToScreenXY(
double worldX, double worldY) → Vector2 -
Takes the world coordinates and returns the screen coordinates.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited