MaterialFilter

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

    Declaration

    Swift

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

    Parameters

    raw

    The raw integer value to initialise the enum from

  • Measuring in manhatten distance from the, current pixel center, use the nearest texture texel

    Declaration

    Swift

    static let nearest: CoglMaterialFilter
  • Use the weighted average of the 4 texels nearest the current pixel center

    Declaration

    Swift

    static let linear: CoglMaterialFilter
  • Select the mimap level whose texel size most closely matches the current pixel, and use the COGL_MATERIAL_FILTER_NEAREST criterion

    Declaration

    Swift

    static let nearestMipmapNearest: CoglMaterialFilter
  • Select the mimap level whose texel size most closely matches the current pixel, and use the COGL_MATERIAL_FILTER_LINEAR criterion

    Declaration

    Swift

    static let linearMipmapNearest: CoglMaterialFilter
  • Select the two mimap levels whose texel size most closely matches the current pixel, use the COGL_MATERIAL_FILTER_NEAREST criterion on each one and take their weighted average

    Declaration

    Swift

    static let nearestMipmapLinear: CoglMaterialFilter
  • Select the two mimap levels whose texel size most closely matches the current pixel, use the COGL_MATERIAL_FILTER_LINEAR criterion on each one and take their weighted average

    Declaration

    Swift

    static let linearMipmapLinear: CoglMaterialFilter