Class AbstractPbufferTextureRenderer

java.lang.Object
com.ardor3d.renderer.AbstractPbufferTextureRenderer
All Implemented Interfaces:
TextureRenderer
Direct Known Subclasses:
JoglPbufferTextureRenderer

public abstract class AbstractPbufferTextureRenderer extends Object implements TextureRenderer
  • Field Details

    • _enforcedStates

      protected final EnumMap<RenderState.StateType,RenderState> _enforcedStates
      List of states that override any set states on a spatial if not null.
    • _camera

      protected final Camera _camera
    • _backgroundColor

      protected final ColorRGBA _backgroundColor
    • _bgColorDirty

      protected boolean _bgColorDirty
    • _useDirectRender

      protected boolean _useDirectRender
    • _active

      protected int _active
    • _width

      protected int _width
    • _height

      protected int _height
    • _parentRenderer

      protected final Renderer _parentRenderer
    • _settings

      protected final DisplaySettings _settings
    • _oldContext

      protected RenderContext _oldContext
  • Constructor Details

  • Method Details

    • switchCameraIn

      protected void switchCameraIn(int clear)
    • clearBuffers

      protected abstract void clearBuffers(int clear)
    • switchCameraOut

      protected void switchCameraOut()
    • doDraw

      protected void doDraw(Spatial spat)
    • doDraw

      protected void doDraw(List<? extends Spatial> toDraw)
    • doDraw

      protected void doDraw(Scene toDraw)
    • getCamera

      public Camera getCamera()
      getCamera retrieves the camera this renderer is using.
      Specified by:
      getCamera in interface TextureRenderer
      Returns:
      the camera this renderer is using.
    • setBackgroundColor

      public void setBackgroundColor(ReadOnlyColorRGBA c)
      Description copied from interface: TextureRenderer
      setBackgroundColor sets the color of window. This color will be shown for any pixel that is not set via typical rendering operations.
      Specified by:
      setBackgroundColor in interface TextureRenderer
      Parameters:
      c - the color to set the background to.
    • getBackgroundColor

      public ReadOnlyColorRGBA getBackgroundColor()
      Description copied from interface: TextureRenderer
      getBackgroundColor retrieves the color used for the window background.
      Specified by:
      getBackgroundColor in interface TextureRenderer
      Returns:
      the background color that is currently set to the background.
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface TextureRenderer
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface TextureRenderer
    • enforceState

      public void enforceState(RenderState state)
      Description copied from interface: TextureRenderer
      Enforce a particular state whenever this texture renderer is used. In other words, the given state will override any state of the same type set on a scene object rendered with this texture renderer.
      Specified by:
      enforceState in interface TextureRenderer
      Parameters:
      state - state to enforce
    • enforceStates

      public void enforceStates(EnumMap<RenderState.StateType,RenderState> states)
      Specified by:
      enforceStates in interface TextureRenderer
    • clearEnforcedState

      public void clearEnforcedState(RenderState.StateType type)
      Specified by:
      clearEnforcedState in interface TextureRenderer
      Parameters:
      type - state type to clear
    • clearEnforcedStates

      public void clearEnforcedStates()
      Description copied from interface: TextureRenderer
      Clear all enforced states on this texture renderer.
      Specified by:
      clearEnforcedStates in interface TextureRenderer