code: public static JCGLTextureFilterMagnification textureFilterMagFromGL(
      final int mag_filter)
    {
      switch (mag_filter) {
        case GL.GL_LINEAR:
          return JCGLTextureFilterMagnification.TEXTURE_FILTER_LINEAR;
        case GL.GL_NEAREST:
          return JCGLTextureFilterMagnification.TEXTURE_FILTER_NEAREST;
        default:
          throw new UnreachableCodeException();
      }
    }
docs: Convert filters from GL constants.
  
  @param mag_filter The GL constant.
  
  @return The value.