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
Afficher le fichier Open project: scastle/Solitude Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultShapeColor Color
InactiveShapeColor Color
KinematicShapeColor Color
SleepingShapeColor Color
StaticShapeColor Color
TextColor Color

Méthodes publiques

Méthode 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

Méthode 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 méthode

public DebugViewXNA ( World world ) : System
world FarseerPhysics.Dynamics.World
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

DrawAABB() public méthode

public DrawAABB ( AABB &aabb, Color color ) : void
aabb FarseerPhysics.Collision.AABB
color Color
Résultat void

DrawCircle() public méthode

public DrawCircle ( Vector2 center, float radius, Color color ) : void
center Vector2
radius float
color Color
Résultat void

DrawCircle() public méthode

public DrawCircle ( Vector2 center, float radius, float red, float green, float blue ) : void
center Vector2
radius float
red float
green float
blue float
Résultat void

DrawPoint() public méthode

public DrawPoint ( Vector2 p, float size, Color color ) : void
p Vector2
size float
color Color
Résultat void

DrawPolygon() public méthode

public DrawPolygon ( Vector2 vertices, int count, Color color ) : void
vertices Vector2
count int
color Color
Résultat void

DrawPolygon() public méthode

public DrawPolygon ( Vector2 vertices, int count, float red, float green, float blue ) : void
vertices Vector2
count int
red float
green float
blue float
Résultat void

DrawSegment() public méthode

public DrawSegment ( Vector2 start, Vector2 end, Color color ) : void
start Vector2
end Vector2
color Color
Résultat void

DrawSegment() public méthode

public DrawSegment ( Vector2 start, Vector2 end, float red, float green, float blue ) : void
start Vector2
end Vector2
red float
green float
blue float
Résultat void

DrawSolidCircle() public méthode

public DrawSolidCircle ( Vector2 center, float radius, Vector2 axis, Color color ) : void
center Vector2
radius float
axis Vector2
color Color
Résultat void

DrawSolidCircle() public méthode

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
Résultat void

DrawSolidPolygon() public méthode

public DrawSolidPolygon ( Vector2 vertices, int count, Color color ) : void
vertices Vector2
count int
color Color
Résultat void

DrawSolidPolygon() public méthode

public DrawSolidPolygon ( Vector2 vertices, int count, Color color, bool outline ) : void
vertices Vector2
count int
color Color
outline bool
Résultat void

DrawSolidPolygon() public méthode

public DrawSolidPolygon ( Vector2 vertices, int count, float red, float green, float blue ) : void
vertices Vector2
count int
red float
green float
blue float
Résultat void

DrawString() public méthode

public DrawString ( int x, int y, string s ) : void
x int
y int
s string
Résultat void

DrawTransform() public méthode

public DrawTransform ( Transform &transform ) : void
transform Transform
Résultat void

LoadContent() public static méthode

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

RenderDebugData() public méthode

public RenderDebugData ( Matrix &projection ) : void
projection Matrix
Résultat void

RenderDebugData() public méthode

public RenderDebugData ( Matrix &projection, Matrix &view ) : void
projection Matrix
view Matrix
Résultat void

Property Details

DefaultShapeColor public_oe property

public Color DefaultShapeColor
Résultat Color

InactiveShapeColor public_oe property

public Color InactiveShapeColor
Résultat Color

KinematicShapeColor public_oe property

public Color KinematicShapeColor
Résultat Color

SleepingShapeColor public_oe property

public Color SleepingShapeColor
Résultat Color

StaticShapeColor public_oe property

public Color StaticShapeColor
Résultat Color

TextColor public_oe property

public Color TextColor
Résultat Color