how to do Trilinear filtering of textures....

Well it maybe a very simple techique but i’m new to texture mapping, some help needed.

glTexParameteri ( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR );

And, of course, you need to set magnif. filter to linear, and your textures must have mipmaps.

and how do we add mippmaps to our textures…?

You can use gluBuild2DMipmaps() instead of glTexImage2D().

You also have to include “GL/glu.h” and add glu32.lib (on Win32 platform) to your project.