java.lang.Object
com.marginallyclever.ro3.apps.viewport.renderpasses.AbstractRenderPass
com.marginallyclever.ro3.apps.viewport.renderpasses.DrawHingeJoints
All Implemented Interfaces:
com.jogamp.opengl.GLEventListener, RenderPass, EventListener

public class DrawHingeJoints extends AbstractRenderPass

Draw a ring around each hinge joint to show the range of motion.

Draw a line to show the current angle.

  • Constructor Details

    • DrawHingeJoints

      public DrawHingeJoints()
  • Method Details

    • init

      public void init(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)
      Specified by:
      init in interface com.jogamp.opengl.GLEventListener
      Overrides:
      init in class AbstractRenderPass
    • dispose

      public void dispose(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)
      Specified by:
      dispose in interface com.jogamp.opengl.GLEventListener
      Overrides:
      dispose in class AbstractRenderPass
    • draw

      public void draw(Viewport viewport)
      Description copied from interface: RenderPass
      Draw this viewport pass.
      Specified by:
      draw in interface RenderPass
      Overrides:
      draw in class AbstractRenderPass
      Parameters:
      viewport - the viewport to draw into