C# 클래스 Box2D.Callbacks.DebugDraw

Implement this abstract class to allow JBox2d to automatically draw your physics for debugging purposes. Not intended to replace your own custom rendering routines!
파일 보기 프로젝트 열기: gerich-home/box2dnet 1 사용 예제들

공개 메소드들

메소드 설명
AppendFlags ( DrawFlags flags ) : void
ClearFlags ( DrawFlags flags ) : void
DrawCircle ( Vec2 center, float radius, Color3f color ) : void

Draw a circle.

DrawPoint ( Vec2 argPoint, float argRadiusOnScreen, Color3f argColor ) : void
DrawPolygon ( Vec2 vertices, int vertexCount, Color3f color ) : void

Draw a closed polygon provided in CCW order. This implementation uses {@link #drawSegment(Vec2, Vec2, Color3f)} to draw each side of the polygon.

DrawSegment ( Vec2 p1, Vec2 p2, Color3f color ) : void

Draw a line segment.

DrawSolidCircle ( Vec2 center, float radius, Vec2 axis, Color3f color ) : void

Draw a solid circle.

DrawSolidPolygon ( Vec2 vertices, int vertexCount, Color3f color ) : void

Draw a solid closed polygon provided in CCW order.

DrawString ( Vec2 pos, String s, Color3f color ) : void
DrawString ( float x, float y, String s, Color3f color ) : void

Draw a string.

DrawTransform ( Transform xf ) : void

Draw a transform. Choose your own length scale

GetScreenToWorld ( Vec2 argScreen ) : Vec2

takes the screen coordinates (argScreen) and returns the world coordinates

GetScreenToWorld ( float screenX, float screenY ) : Vec2

takes the screen coordinates and returns the world coordinates.

GetScreenToWorldToOut ( Vec2 argScreen, Vec2 argWorld ) : void
GetScreenToWorldToOut ( float screenX, float screenY, Vec2 argWorld ) : void

takes the screen coordinates and puts the corresponding world coordinates in argWorld.

GetWorldToScreen ( Vec2 argWorld ) : Vec2

takes the world coordinate (argWorld) and returns the screen coordinates.

GetWorldToScreen ( float worldX, float worldY ) : Vec2

Takes the world coordinates and returns the screen coordinates.

GetWorldToScreenToOut ( Vec2 argWorld, Vec2 argScreen ) : void
GetWorldToScreenToOut ( float worldX, float worldY, Vec2 argScreen ) : void

Takes the world coordinates and puts the corresponding screen coordinates in argScreen.

SetCamera ( float x, float y, float scale ) : void

보호된 메소드들

메소드 설명
DebugDraw ( IViewportTransform viewport ) : System

메소드 상세

AppendFlags() 공개 메소드

public AppendFlags ( DrawFlags flags ) : void
flags DrawFlags
리턴 void

ClearFlags() 공개 메소드

public ClearFlags ( DrawFlags flags ) : void
flags DrawFlags
리턴 void

DebugDraw() 보호된 메소드

protected DebugDraw ( IViewportTransform viewport ) : System
viewport IViewportTransform
리턴 System

DrawCircle() 공개 추상적인 메소드

Draw a circle.
public abstract DrawCircle ( Vec2 center, float radius, Color3f color ) : void
center Box2D.Common.Vec2
radius float
color Box2D.Common.Color3f
리턴 void

DrawPoint() 공개 추상적인 메소드

public abstract DrawPoint ( Vec2 argPoint, float argRadiusOnScreen, Color3f argColor ) : void
argPoint Box2D.Common.Vec2
argRadiusOnScreen float
argColor Box2D.Common.Color3f
리턴 void

DrawPolygon() 공개 메소드

Draw a closed polygon provided in CCW order. This implementation uses {@link #drawSegment(Vec2, Vec2, Color3f)} to draw each side of the polygon.
public DrawPolygon ( Vec2 vertices, int vertexCount, Color3f color ) : void
vertices Box2D.Common.Vec2
vertexCount int
color Box2D.Common.Color3f
리턴 void

DrawSegment() 공개 추상적인 메소드

Draw a line segment.
public abstract DrawSegment ( Vec2 p1, Vec2 p2, Color3f color ) : void
p1 Box2D.Common.Vec2
p2 Box2D.Common.Vec2
color Box2D.Common.Color3f
리턴 void

DrawSolidCircle() 공개 추상적인 메소드

Draw a solid circle.
public abstract DrawSolidCircle ( Vec2 center, float radius, Vec2 axis, Color3f color ) : void
center Box2D.Common.Vec2
radius float
axis Box2D.Common.Vec2
color Box2D.Common.Color3f
리턴 void

DrawSolidPolygon() 공개 추상적인 메소드

Draw a solid closed polygon provided in CCW order.
public abstract DrawSolidPolygon ( Vec2 vertices, int vertexCount, Color3f color ) : void
vertices Box2D.Common.Vec2
vertexCount int
color Box2D.Common.Color3f
리턴 void

DrawString() 공개 메소드

public DrawString ( Vec2 pos, String s, Color3f color ) : void
pos Box2D.Common.Vec2
s String
color Box2D.Common.Color3f
리턴 void

DrawString() 공개 추상적인 메소드

Draw a string.
public abstract DrawString ( float x, float y, String s, Color3f color ) : void
x float
y float
s String
color Box2D.Common.Color3f
리턴 void

DrawTransform() 공개 추상적인 메소드

Draw a transform. Choose your own length scale
public abstract DrawTransform ( Transform xf ) : void
xf Box2D.Common.Transform
리턴 void

GetScreenToWorld() 공개 메소드

takes the screen coordinates (argScreen) and returns the world coordinates
public GetScreenToWorld ( Vec2 argScreen ) : Vec2
argScreen Box2D.Common.Vec2
리턴 Box2D.Common.Vec2

GetScreenToWorld() 공개 메소드

takes the screen coordinates and returns the world coordinates.
public GetScreenToWorld ( float screenX, float screenY ) : Vec2
screenX float
screenY float
리턴 Box2D.Common.Vec2

GetScreenToWorldToOut() 공개 메소드

public GetScreenToWorldToOut ( Vec2 argScreen, Vec2 argWorld ) : void
argScreen Box2D.Common.Vec2
argWorld Box2D.Common.Vec2
리턴 void

GetScreenToWorldToOut() 공개 메소드

takes the screen coordinates and puts the corresponding world coordinates in argWorld.
public GetScreenToWorldToOut ( float screenX, float screenY, Vec2 argWorld ) : void
screenX float
screenY float
argWorld Box2D.Common.Vec2
리턴 void

GetWorldToScreen() 공개 메소드

takes the world coordinate (argWorld) and returns the screen coordinates.
public GetWorldToScreen ( Vec2 argWorld ) : Vec2
argWorld Box2D.Common.Vec2
리턴 Box2D.Common.Vec2

GetWorldToScreen() 공개 메소드

Takes the world coordinates and returns the screen coordinates.
public GetWorldToScreen ( float worldX, float worldY ) : Vec2
worldX float
worldY float
리턴 Box2D.Common.Vec2

GetWorldToScreenToOut() 공개 메소드

public GetWorldToScreenToOut ( Vec2 argWorld, Vec2 argScreen ) : void
argWorld Box2D.Common.Vec2
argScreen Box2D.Common.Vec2
리턴 void

GetWorldToScreenToOut() 공개 메소드

Takes the world coordinates and puts the corresponding screen coordinates in argScreen.
public GetWorldToScreenToOut ( float worldX, float worldY, Vec2 argScreen ) : void
worldX float
worldY float
argScreen Box2D.Common.Vec2
리턴 void

SetCamera() 공개 메소드

public SetCamera ( float x, float y, float scale ) : void
x float
y float
scale float
리턴 void