Interface RenderPipeline<T extends PipelineContext>

Type Parameters:
T -
All Known Implementing Classes:
ForwardPipeline, NullPipeline

public interface RenderPipeline<T extends PipelineContext>
Pipeline for rendering a ViewPort.
  • Method Details

    • fetchPipelineContext

      T fetchPipelineContext(RenderManager rm)
      Fetches the PipelineContext this pipeline requires for rendering from the RenderManager.
      Parameters:
      rm -
      Returns:
      pipeline context (not null)
    • hasRenderedThisFrame

      boolean hasRenderedThisFrame()
      Returns true if this pipeline has rendered a viewport this render frame.
      Returns:
    • startRenderFrame

      void startRenderFrame(RenderManager rm)
      Called before this pipeline is rendered for the first time this frame.

      Only called if the pipeline will actually be rendered.

      Parameters:
      rm -
    • pipelineRender

      void pipelineRender(RenderManager rm, T context, ViewPort vp, float tpf)
      Renders the pipeline.
      Parameters:
      rm -
      context -
      vp -
      tpf -
    • endRenderFrame

      void endRenderFrame(RenderManager rm)
      Called after all rendering is complete in a rendering frame this pipeline participated in.
      Parameters:
      rm -