Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public static extern IntPtr cb2debugdraw_create(cb2debugdraw functions);
Пример #4
0
 public static extern IntPtr cb2debugdraw_create(cb2debugdraw functions);