Package 

Class OverlayDrawer

    • Method Summary

      Modifier and Type Method Description
      void draw(Overlay.Target target) Should be called to draw the Overlay on the given Overlay.Target.
      Array<float> getTransform() Returns the transform that should be used to render the drawn content.
      void render(long timestampUs) Renders the drawn content in the current EGL surface, assuming there is one.
      void release() Releases resources.
      • Methods inherited from class java.lang.Object

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

      • OverlayDrawer

        OverlayDrawer(Overlay overlay, Size size)
    • Method Detail

      • draw

         void draw(Overlay.Target target)

        Should be called to draw the Overlay on the given Overlay.Target.This will provide a working Canvas to the overlay and also update thedrawn contents to a GLES texture.

        Parameters:
        target - the target
      • getTransform

         Array<float> getTransform()

        Returns the transform that should be used to render the drawn content.This should be called after draw and can be modified.

      • render

         void render(long timestampUs)

        Renders the drawn content in the current EGL surface, assuming there is one.Should be called after draw and any getTransform modification.

        Parameters:
        timestampUs - frame timestamp
      • release

         void release()

        Releases resources.