Class Attachment.CppProxy

  • All Implemented Interfaces:
    Attachment
    Enclosing interface:
    Attachment

    public static final class Attachment.CppProxy
    extends java.lang.Object
    implements Attachment
    • Method Detail

      • _djinni_private_destroy

        public void _djinni_private_destroy()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • setType

        public void setType​(AttachmentType type)
        Specified by:
        setType in interface Attachment
        Parameters:
        type - (attachment_type). Can be color, or depth
      • setClearColor

        public void setClearColor​(Vec4 color)
        Specified by:
        setClearColor in interface Attachment
        Parameters:
        color - (vec4). Also implisity set attachment load behaviour to clear.
      • getClearColor

        public Vec4 getClearColor()
        Specified by:
        getClearColor in interface Attachment
        Returns:
        attachment clear color (vec4)
      • setWidth

        public void setWidth​(int value)
        Description copied from interface: Attachment
        set attachment width
        Specified by:
        setWidth in interface Attachment
      • setHeight

        public void setHeight​(int value)
        Description copied from interface: Attachment
        set attachment height
        Specified by:
        setHeight in interface Attachment
      • getWidth

        public int getWidth()
        Specified by:
        getWidth in interface Attachment
        Returns:
        attachment width (int)
      • getHeight

        public int getHeight()
        Specified by:
        getHeight in interface Attachment
        Returns:
        attachment height (int)
      • asImage

        public Image asImage()
        Specified by:
        asImage in interface Attachment
        Returns:
        upcast to base type