[SLICK] clampTexture

Hi,

Hope I can post in this one about slick (based on the fact it is a LWJGL wrapper)

I was just wondering, I did try Google first, what is meant by clampTexture on the spritesheet class.

The underlying code is:


if (GLContext.getCapabilities().GL_EXT_texture_mirror_clamp) {
        GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, EXTTextureMirrorClamp.GL_MIRROR_CLAMP_TO_EDGE_EXT);
        GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, EXTTextureMirrorClamp.GL_MIRROR_CLAMP_TO_EDGE_EXT);
} else {
         GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL11.GL_CLAMP);
         GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL11.GL_CLAMP);
}

What does it do and why is it needed?

Cheers

Cookie

Thanks!

Was kinda hoping for a better explanation. E.g. in a 2D environment it is a performance killer etc (it may not be )

Cookie