コード例 #1
0
ファイル: b2Color.cs プロジェクト: vanoseva/Box2DCS
 internal static HandleRef getCPtr(b2Color obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #2
0
ファイル: b2Draw.cs プロジェクト: vanoseva/Box2DCS
 public virtual void DrawSolidCircle(b2Vec2 center, float radius, b2Vec2 axis, b2Color color)
 {
     Box2DPINVOKE.b2Draw_DrawSolidCircle(swigCPtr, b2Vec2.getCPtr(center), radius, b2Vec2.getCPtr(axis), b2Color.getCPtr(color));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #3
0
ファイル: b2Draw.cs プロジェクト: vanoseva/Box2DCS
 public virtual void DrawSolidPolygon(b2Vec2 vertices, int vertexCount, b2Color color)
 {
     Box2DPINVOKE.b2Draw_DrawSolidPolygon(swigCPtr, b2Vec2.getCPtr(vertices), vertexCount, b2Color.getCPtr(color));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #4
0
ファイル: b2Draw.cs プロジェクト: vanoseva/Box2DCS
 public virtual void DrawSegment(b2Vec2 p1, b2Vec2 p2, b2Color color)
 {
     Box2DPINVOKE.b2Draw_DrawSegment(swigCPtr, b2Vec2.getCPtr(p1), b2Vec2.getCPtr(p2), b2Color.getCPtr(color));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }