java.lang.Object
com.marginallyclever.ro3.apps.viewport.renderpasses.AbstractRenderPass
All Implemented Interfaces:
com.jogamp.opengl.GLEventListener, RenderPass, EventListener
Direct Known Subclasses:
DrawBackground, DrawBoundingBoxes, DrawCameras, DrawDHParameters, DrawGroundPlane, DrawHingeJoints, DrawMeshes, DrawPoses

public abstract class AbstractRenderPass extends Object implements RenderPass
AbstractRenderPass handles common methods for all RenderPass.
  • Method Details

    • setName

      public void setName(String name)
    • getName

      public String getName()
      Specified by:
      getName in interface RenderPass
      Returns:
      the localized name of this pass.
    • getActiveStatus

      public int getActiveStatus()
      Specified by:
      getActiveStatus in interface RenderPass
      Returns:
      NEVER, SOMETIMES, or ALWAYS
    • setActiveStatus

      public void setActiveStatus(int status)
      Specified by:
      setActiveStatus in interface RenderPass
      Parameters:
      status - NEVER, SOMETIMES, or ALWAYS
    • draw

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

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

      public void dispose(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)
      Specified by:
      dispose in interface com.jogamp.opengl.GLEventListener
    • display

      public void display(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)
      Specified by:
      display in interface com.jogamp.opengl.GLEventListener
    • reshape

      public void reshape(com.jogamp.opengl.GLAutoDrawable glAutoDrawable, int x, int y, int width, int height)
      Specified by:
      reshape in interface com.jogamp.opengl.GLEventListener