C# Class FarseerPhysics.DebugViewXNA.DebugViewXNA

A debug view that works in XNA. A debug view shows you what happens inside the physics engine. You can view bodies, joints, fixtures and more.
Inheritance: DebugView, IDisposable
Datei anzeigen Open project: scastle/Solitude Class Usage Examples

Public Properties

Property Type Description
DefaultShapeColor Color
InactiveShapeColor Color
KinematicShapeColor Color
SleepingShapeColor Color
StaticShapeColor Color
TextColor Color

Public Methods

Method Description
DebugViewXNA ( World world ) : System
Dispose ( ) : void
DrawAABB ( AABB &aabb, Color color ) : void
DrawCircle ( Vector2 center, float radius, Color color ) : void
DrawCircle ( Vector2 center, float radius, float red, float green, float blue ) : void
DrawPoint ( Vector2 p, float size, Color color ) : void
DrawPolygon ( Vector2 vertices, int count, Color color ) : void
DrawPolygon ( Vector2 vertices, int count, float red, float green, float blue ) : void
DrawSegment ( Vector2 start, Vector2 end, Color color ) : void
DrawSegment ( Vector2 start, Vector2 end, float red, float green, float blue ) : void
DrawSolidCircle ( Vector2 center, float radius, Vector2 axis, Color color ) : void
DrawSolidCircle ( Vector2 center, float radius, Vector2 axis, float red, float green, float blue ) : void
DrawSolidPolygon ( Vector2 vertices, int count, Color color ) : void
DrawSolidPolygon ( Vector2 vertices, int count, Color color, bool outline ) : void
DrawSolidPolygon ( Vector2 vertices, int count, float red, float green, float blue ) : void
DrawString ( int x, int y, string s ) : void
DrawTransform ( Transform &transform ) : void
LoadContent ( GraphicsDevice device, Microsoft.Xna.Framework.Content.ContentManager content ) : void
RenderDebugData ( Matrix &projection ) : void
RenderDebugData ( Matrix &projection, Matrix &view ) : void

Private Methods

Method Description
DrawDebugData ( ) : void

Call this to draw shapes and other debug draw data.

DrawDebugPanel ( ) : void
DrawJoint ( Joint joint ) : void
DrawShape ( Fixture fixture, Transform xf, Color color ) : void
PreSolve ( Contact contact, Manifold &oldManifold ) : void

Method Details

DebugViewXNA() public method

public DebugViewXNA ( World world ) : System
world FarseerPhysics.Dynamics.World
return System

Dispose() public method

public Dispose ( ) : void
return void

DrawAABB() public method

public DrawAABB ( AABB &aabb, Color color ) : void
aabb FarseerPhysics.Collision.AABB
color Color
return void

DrawCircle() public method

public DrawCircle ( Vector2 center, float radius, Color color ) : void
center Vector2
radius float
color Color
return void

DrawCircle() public method

public DrawCircle ( Vector2 center, float radius, float red, float green, float blue ) : void
center Vector2
radius float
red float
green float
blue float
return void

DrawPoint() public method

public DrawPoint ( Vector2 p, float size, Color color ) : void
p Vector2
size float
color Color
return void

DrawPolygon() public method

public DrawPolygon ( Vector2 vertices, int count, Color color ) : void
vertices Vector2
count int
color Color
return void

DrawPolygon() public method

public DrawPolygon ( Vector2 vertices, int count, float red, float green, float blue ) : void
vertices Vector2
count int
red float
green float
blue float
return void

DrawSegment() public method

public DrawSegment ( Vector2 start, Vector2 end, Color color ) : void
start Vector2
end Vector2
color Color
return void

DrawSegment() public method

public DrawSegment ( Vector2 start, Vector2 end, float red, float green, float blue ) : void
start Vector2
end Vector2
red float
green float
blue float
return void

DrawSolidCircle() public method

public DrawSolidCircle ( Vector2 center, float radius, Vector2 axis, Color color ) : void
center Vector2
radius float
axis Vector2
color Color
return void

DrawSolidCircle() public method

public DrawSolidCircle ( Vector2 center, float radius, Vector2 axis, float red, float green, float blue ) : void
center Vector2
radius float
axis Vector2
red float
green float
blue float
return void

DrawSolidPolygon() public method

public DrawSolidPolygon ( Vector2 vertices, int count, Color color ) : void
vertices Vector2
count int
color Color
return void

DrawSolidPolygon() public method

public DrawSolidPolygon ( Vector2 vertices, int count, Color color, bool outline ) : void
vertices Vector2
count int
color Color
outline bool
return void

DrawSolidPolygon() public method

public DrawSolidPolygon ( Vector2 vertices, int count, float red, float green, float blue ) : void
vertices Vector2
count int
red float
green float
blue float
return void

DrawString() public method

public DrawString ( int x, int y, string s ) : void
x int
y int
s string
return void

DrawTransform() public method

public DrawTransform ( Transform &transform ) : void
transform Transform
return void

LoadContent() public static method

public static LoadContent ( GraphicsDevice device, Microsoft.Xna.Framework.Content.ContentManager content ) : void
device GraphicsDevice
content Microsoft.Xna.Framework.Content.ContentManager
return void

RenderDebugData() public method

public RenderDebugData ( Matrix &projection ) : void
projection Matrix
return void

RenderDebugData() public method

public RenderDebugData ( Matrix &projection, Matrix &view ) : void
projection Matrix
view Matrix
return void

Property Details

DefaultShapeColor public_oe property

public Color DefaultShapeColor
return Color

InactiveShapeColor public_oe property

public Color InactiveShapeColor
return Color

KinematicShapeColor public_oe property

public Color KinematicShapeColor
return Color

SleepingShapeColor public_oe property

public Color SleepingShapeColor
return Color

StaticShapeColor public_oe property

public Color StaticShapeColor
return Color

TextColor public_oe property

public Color TextColor
return Color