Class DebugDrawJ2D


  • public class DebugDrawJ2D
    extends DebugDraw
    Implementation of DebugDraw that uses Java2D! Hooray!
    • Field Detail

      • circlePoints

        public static int circlePoints
      • vec2Array

        private final Vec2Array vec2Array
      • sp1

        private final Vec2 sp1
      • sp2

        private final Vec2 sp2
      • saxis

        private final Vec2 saxis
      • temp

        private final Vec2 temp
      • xIntsPool

        private static final IntArray xIntsPool
      • yIntsPool

        private static final IntArray yIntsPool
      • temp2

        private final Vec2 temp2
    • Constructor Detail

      • DebugDrawJ2D

        public DebugDrawJ2D​(TestPanelJ2D argTestPanel)
        Parameters:
        viewport -
    • Method Detail

      • drawAABB

        public void drawAABB​(AABB argAABB,
                             Color3f color)
      • drawSolidPolygon

        public void drawSolidPolygon​(Vec2[] vertices,
                                     int vertexCount,
                                     Color3f color)
        Description copied from class: DebugDraw
        Draw a solid closed polygon provided in CCW order.
        Specified by:
        drawSolidPolygon in class DebugDraw
      • drawString

        public void drawString​(float x,
                               float y,
                               java.lang.String s,
                               Color3f color)
        Description copied from class: DebugDraw
        Draw a string.
        Specified by:
        drawString in class DebugDraw
      • getGraphics

        private java.awt.Graphics2D getGraphics()
      • generateCirle

        private void generateCirle​(Vec2 argCenter,
                                   float argRadius,
                                   Vec2[] argPoints,
                                   int argNumPoints)