Interface Attachment

  • All Known Implementing Classes:
    Attachment.CppProxy

    public interface Attachment
    Class, represents render target attachment. Subclass of image
    • Method Detail

      • getAttachmentType

        @NonNull
        AttachmentType getAttachmentType()
        Returns:
        attachment type (attachment_type). Can be color, or depth
      • setType

        void setType​(@NonNull
                     AttachmentType type)
        Parameters:
        type - (attachment_type). Can be color, or depth
      • setClearColor

        void setClearColor​(@NonNull
                           Vec4 color)
        Parameters:
        color - (vec4). Also implisity set attachment load behaviour to clear.
      • getClearColor

        @NonNull
        Vec4 getClearColor()
        Returns:
        attachment clear color (vec4)
      • setWidth

        void setWidth​(int value)
        set attachment width
        Parameters:
        width - (int)
      • setHeight

        void setHeight​(int value)
        set attachment height
        Parameters:
        height - (int)
      • getWidth

        int getWidth()
        Returns:
        attachment width (int)
      • getHeight

        int getHeight()
        Returns:
        attachment height (int)
      • setFormat

        void setFormat​(@NonNull
                       PixelFormatType format)
        set attachment pixel format
      • getFormat

        @NonNull
        PixelFormatType getFormat()
        Returns:
        attachment pixel format
      • setFilteringMode

        void setFilteringMode​(@NonNull
                              TextureFilteringMode value)
        set attachment texture filtering mode param mode (texture_filtering_mode)
      • getFilteringMode

        @NonNull
        TextureFilteringMode getFilteringMode()
        Returns:
        filtering mode (texture_filtering_mode)
      • asImage

        @Nullable
        Image asImage()
        Returns:
        upcast to base type