TextureComponents

public extension TextureComponents
  • Cast constructor, converting any binary integer to a TextureComponents.

    Declaration

    Swift

    @inlinable
    init!<I>(_ raw: I) where I : BinaryInteger

    Parameters

    raw

    The raw integer value to initialise the enum from

  • a

    Only the alpha component

    Declaration

    Swift

    static let a: _CoglTextureComponents
  • rg

    Red and green components. Note that this can only be used if the COGL_FEATURE_ID_TEXTURE_RG feature is advertised.

    Declaration

    Swift

    static let rg: _CoglTextureComponents
  • rgb

    Red, green and blue components

    Declaration

    Swift

    static let rgb: _CoglTextureComponents
  • Red, green, blue and alpha components

    Declaration

    Swift

    static let rgba: _CoglTextureComponents
  • Only a depth component

    Declaration

    Swift

    static let depth: _CoglTextureComponents