Quote:Original post by daniel_i_l
So what do you recommend?
Thanks.
Cut Nehe's image loader code in half.
You only want the first part, where it reads the image file.
The second part, where it sends the data to OpenGL you should throw away.
After reading the file, copy the data into your own Map Structure.
Your own Map Structure will be custom tailored to give you easy access to the data you need, and it should be saved long after the image file itself is closed.
Live happily ever after.
The Details of Implementation are left as an exercise for the reader... I do not use NeHe's code so I am not familiar with the specifics of what lines need to be changed.