Class Renderer.ClearOptions

  • Enclosing class:
    Renderer

    public static class Renderer.ClearOptions
    extends java.lang.Object
    ClearOptions are used at the beginning of a frame to clear or retain the SwapChain content.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean clear
      Whether the SwapChain should be cleared using the clearColor.
      float[] clearColor
      Color to use to clear the SwapChain
      boolean discard
      Whether the SwapChain content should be discarded.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClearOptions()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • clearColor

        @NonNull
        public float[] clearColor
        Color to use to clear the SwapChain
      • clear

        public boolean clear
        Whether the SwapChain should be cleared using the clearColor. Use this if translucent View will be drawn, for instance.
      • discard

        public boolean discard
        Whether the SwapChain content should be discarded. clear implies discard. Set this to false (along with clear to false as well) if the SwapChain already has content that needs to be preserved
    • Constructor Detail

      • ClearOptions

        public ClearOptions()