Interface IDebugDraw
Definition
- Assembly:
- Tizen.NUI.Physics2D.dll
Interface to draw debug primitives (circle, point, segment).
public interface IDebugDraw
Methods
View SourceColorForShape(Shape)
Returns a color for a given shape. This gives you an opportunity to color shapes based on how they are used in your engine.
Declaration
DebugColor ColorForShape(Shape shape)
Parameters
Type | Name | Description |
---|---|---|
Shape | shape |
Returns
Type | Description |
---|---|
DebugColor |
DrawCircle(Vect, double, double, DebugColor, DebugColor)
Draw stroked circle.
Declaration
void DrawCircle(Vect pos, double angle, double radius, DebugColor outlineColor, DebugColor fillColor)
Parameters
Type | Name | Description |
---|---|---|
Vect | pos | |
double | angle | |
double | radius | |
DebugColor | outlineColor | |
DebugColor | fillColor |
DrawDot(double, Vect, DebugColor)
Draws a dot.
Declaration
void DrawDot(double size, Vect pos, DebugColor color)
Parameters
Type | Name | Description |
---|---|---|
double | size | |
Vect | pos | |
DebugColor | color |
DrawFatSegment(Vect, Vect, double, DebugColor, DebugColor)
Draws a thick line segment.
Declaration
void DrawFatSegment(Vect a, Vect b, double radius, DebugColor outlineColor, DebugColor fillColor)
Parameters
Type | Name | Description |
---|---|---|
Vect | a | |
Vect | b | |
double | radius | |
DebugColor | outlineColor | |
DebugColor | fillColor |
DrawPolygon(Vect[], double, DebugColor, DebugColor)
Draws a convex polygon.
Declaration
void DrawPolygon(Vect[] vectors, double radius, DebugColor outlineColor, DebugColor fillColor)
Parameters
Type | Name | Description |
---|---|---|
Vect[] | vectors | |
double | radius | |
DebugColor | outlineColor | |
DebugColor | fillColor |
DrawSegment(Vect, Vect, DebugColor)
Draws a line segment.
Declaration
void DrawSegment(Vect a, Vect b, DebugColor color)
Parameters
Type | Name | Description |
---|---|---|
Vect | a | |
Vect | b | |
DebugColor | color |