public DebugDraw() { funcs = new cb2debugdraw(); funcs.DrawPolygonCallback = DrawPolygon; funcs.DrawSolidPolygonCallback = DrawSolidPolygon; funcs.DrawCircleCallback = DrawCircle; funcs.DrawSolidCircleCallback = DrawSolidCircle; funcs.DrawSegmentCallback = DrawSegment; funcs.DrawTransformCallback = DrawTransform; _debugDraw = NativeMethods.cb2debugdraw_create(funcs); }
public static extern IntPtr cb2debugdraw_create(cb2debugdraw functions);