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

public class DrawBoundingBoxes extends AbstractRenderPass
Draw the bounding box of each MeshInstance in the scene.
  • Constructor Details

    • DrawBoundingBoxes

      public DrawBoundingBoxes()
  • 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