enum glw::Filtering — HIRO 0.7.0 documentation

# enum glw::Filtering

## Overview

Texture filtering types. Define how colors are pulled from texture image when picking from between multiple texel points. More…

    #include <Texture.h>

    enum Filtering {
        nearest             = uint32_t(gl::GLenum::GL_NEAREST),
        linear              = uint32_t(gl::GLenum::GL_LINEAR),
        closest_mip_nearest = uint32_t(gl::GLenum::GL_NEAREST_MIPMAP_NEAREST),
        closest_mip_linear  = uint32_t(gl::GLenum::GL_LINEAR_MIPMAP_NEAREST),
        inter_mip_nearest   = uint32_t(gl::GLenum::GL_NEAREST_MIPMAP_LINEAR),
        inter_mip_linear    = uint32_t(gl::GLenum::GL_LINEAR_MIPMAP_LINEAR),
    };

## Detailed Documentation

Texture filtering types. Define how colors are pulled from texture image when picking from between multiple texel points.

### Enum Values

    nearest

takes nearest texel to the coordinate

    linear

linearly interpolates 4 nearest texels

    closest_mip_nearest

takes nearest from closest mipmap level

    closest_mip_linear

takes linear from closest mipmap level

    inter_mip_nearest

takes nearest from the 2 closest mipmaps and interpolates

    inter_mip_linear

takes linear from the 2 closest mipmaps and interpolates