anisotropic filtering

Hi @ll!

I know that I have to use an Extension, if I want to use anisitropic filtering in my OpenGL applications. I added the new tokens in a header file, but how can I activate and use the filtering?
How do I have to set it up, so that it works for me? A short piece of sample code would be very nice!


The extension permits the OpenGL application to specify on a per-texture object basis the maximum degree of anisotropy to account for in texture filtering.

int degree_of_anisotropy = 1; // default : bi/tri-linear

degree_of_anisotropy = 2; // - for anisotropic filtering.

glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, degree_of_anisotropy );

Thank you!