code: public void setFilter(int f) {
  		this.filter = f == FILTER_LINEAR ? SGL.GL_LINEAR : SGL.GL_NEAREST;
  
  		texture.bind();
  		GL.glTexParameteri(SGL.GL_TEXTURE_2D, SGL.GL_TEXTURE_MIN_FILTER, filter); 
          GL.glTexParameteri(SGL.GL_TEXTURE_2D, SGL.GL_TEXTURE_MAG_FILTER, filter); 
  	}
docs: Set the image filtering to be used. Note that this will also affect any
  image that was derived from this one (i.e. sub-images etc)
  
  @param f The filtering mode to use