Cogl.PipelineFilter

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.

PipelineFilter.NEAREST

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

PipelineFilter.LINEAR

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

PipelineFilter.NEAREST_MIPMAP_NEAREST

Select the mimap level whose texel size most closely matches the current pixel, and use the Cogl.PipelineFilter.nearest criterion

PipelineFilter.LINEAR_MIPMAP_NEAREST

Select the mimap level whose texel size most closely matches the current pixel, and use the Cogl.PipelineFilter.linear criterion

PipelineFilter.NEAREST_MIPMAP_LINEAR

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

PipelineFilter.LINEAR_MIPMAP_LINEAR

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