Class RenderTarget.CppProxy

java.lang.Object
com.banuba.sdk.scene.RenderTarget.CppProxy
All Implemented Interfaces:
RenderTarget
Enclosing interface:
RenderTarget

public static final class RenderTarget.CppProxy extends Object implements RenderTarget
  • Method Details

    • _djinni_private_destroy

      public void _djinni_private_destroy()
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • getName

      public String getName()
      Specified by:
      getName in interface RenderTarget
      Returns:
      render target name (string)
    • setSamplesCount

      public void setSamplesCount(int samples)
      Specified by:
      setSamplesCount in interface RenderTarget
      Parameters:
      samples - (int) msaa samples counts
    • getSamplesCount

      public int getSamplesCount()
      Specified by:
      getSamplesCount in interface RenderTarget
      Returns:
      msaa samples counts
    • setExtent

      public void setExtent(int width, int height)
      Description copied from interface: RenderTarget
      set render target surface extent
      Specified by:
      setExtent in interface RenderTarget
      Parameters:
      width - (int): surface width
      height - (int): surface height
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface RenderTarget
      Returns:
      render target width (int)
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface RenderTarget
      Returns:
      render target height (int)
    • setScale

      public void setScale(float scale)
      Description copied from interface: RenderTarget
      set render target surface extent scale
      Specified by:
      setScale in interface RenderTarget
    • getScale

      public float getScale()
      Specified by:
      getScale in interface RenderTarget
      Returns:
      render target width scale (int)
    • addAttachment

      public void addAttachment(Image attachment)
      Description copied from interface: RenderTarget
      add color or depth attachment to render target
      Specified by:
      addAttachment in interface RenderTarget
      Parameters:
      attachment - (image): surface attachment
    • removeAttachment

      public void removeAttachment(Image attachment)
      Description copied from interface: RenderTarget
      removes color or depth attachment from render target, if it was aded early
      Specified by:
      removeAttachment in interface RenderTarget
      Parameters:
      attachment - (image): surface attachment
    • getAttachments

      public ArrayList<Image> getAttachments()
      Specified by:
      getAttachments in interface RenderTarget
    • requestReadPixel

      public void requestReadPixel(int x, int y)
      Description copied from interface: RenderTarget
      request reading specific pixel from color attachment at the end of the frame
      Specified by:
      requestReadPixel in interface RenderTarget