org.jbox2d.testbed.framework.jogl
Class JoglDebugDraw

java.lang.Object
  extended by org.jbox2d.callbacks.DebugDraw
      extended by org.jbox2d.testbed.framework.jogl.JoglDebugDraw

public class JoglDebugDraw
extends DebugDraw


Field Summary
 
Fields inherited from class org.jbox2d.callbacks.DebugDraw
e_aabbBit, e_centerOfMassBit, e_dynamicTreeBit, e_jointBit, e_pairBit, e_shapeBit, m_drawFlags, viewportTransform
 
Constructor Summary
JoglDebugDraw(JoglPanel argPanel)
           
 
Method Summary
 void drawCircle(Vec2 center, float radius, Color3f color)
           
 void drawPoint(Vec2 argPoint, float argRadiusOnScreen, Color3f argColor)
           
 void drawSegment(Vec2 p1, Vec2 p2, Color3f color)
           
 void drawSolidCircle(Vec2 center, float radius, Vec2 axis, Color3f color)
           
 void drawSolidPolygon(Vec2[] vertices, int vertexCount, Color3f color)
           
 void drawString(float x, float y, String s, Color3f color)
           
 void drawTransform(Transform xf)
           
 
Methods inherited from class org.jbox2d.callbacks.DebugDraw
appendFlags, clearFlags, drawPolygon, drawString, getFlags, getScreenToWorld, getScreenToWorld, getScreenToWorldToOut, getScreenToWorldToOut, getViewportTranform, getWorldToScreen, getWorldToScreen, getWorldToScreenToOut, getWorldToScreenToOut, setCamera, setFlags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoglDebugDraw

public JoglDebugDraw(JoglPanel argPanel)
Method Detail

drawPoint

public void drawPoint(Vec2 argPoint,
                      float argRadiusOnScreen,
                      Color3f argColor)
Specified by:
drawPoint in class DebugDraw

drawSolidPolygon

public void drawSolidPolygon(Vec2[] vertices,
                             int vertexCount,
                             Color3f color)
Specified by:
drawSolidPolygon in class DebugDraw

drawCircle

public void drawCircle(Vec2 center,
                       float radius,
                       Color3f color)
Specified by:
drawCircle in class DebugDraw

drawSolidCircle

public void drawSolidCircle(Vec2 center,
                            float radius,
                            Vec2 axis,
                            Color3f color)
Specified by:
drawSolidCircle in class DebugDraw

drawSegment

public void drawSegment(Vec2 p1,
                        Vec2 p2,
                        Color3f color)
Specified by:
drawSegment in class DebugDraw

drawTransform

public void drawTransform(Transform xf)
Specified by:
drawTransform in class DebugDraw

drawString

public void drawString(float x,
                       float y,
                       String s,
                       Color3f color)
Specified by:
drawString in class DebugDraw


Copyright © 2013. All Rights Reserved.