I am trying to view a 3ds model with textures. I am currently using lib3ds to load the data n the data is all there but I am not sure which one to use and there are no sample programs which load the textures only the materials.

I am wondering what the parameters are for the glTexImage2D.

Has anybody done this before , mind sharing some code examples.

Thank you