Gjsify LogoGjsify Logo

Texture filtering is used whenever the current pixel maps either to more than one texture element (texel) or less than one. These filter enums correspond to different strategies used to come up with a pixel color, by possibly referring to multiple neighbouring texels and taking a weighted average or simply using the nearest texel.

Index

Enumeration Members

LINEAR: number

Use the weighted average of the 4 texels nearest the current pixel center

LINEAR_MIPMAP_LINEAR: number

Select the two mimap levels whose texel size most closely matches the current pixel, use the %COGL_PIPELINE_FILTER_LINEAR criterion on each one and take their weighted average

LINEAR_MIPMAP_NEAREST: number

Select the mimap level whose texel size most closely matches the current pixel, and use the %COGL_PIPELINE_FILTER_LINEAR criterion

NEAREST: number

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

NEAREST_MIPMAP_LINEAR: number

Select the two mimap levels whose texel size most closely matches the current pixel, use the %COGL_PIPELINE_FILTER_NEAREST criterion on each one and take their weighted average

NEAREST_MIPMAP_NEAREST: number

Select the mimap level whose texel size most closely matches the current pixel, and use the %COGL_PIPELINE_FILTER_NEAREST criterion

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method