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

public class DrawBackground extends AbstractRenderPass

Draw the background. This may be a skybox or a solid color.

TODO use the OpenGL cube map texture?

  • Constructor Details

    • DrawBackground

      public DrawBackground()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface RenderPass
      Overrides:
      getName in class AbstractRenderPass
      Returns:
      the localized name
    • 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
    • getEraseColor

      public ColorRGB getEraseColor()
    • setEraserColor

      public void setEraserColor(ColorRGB c)